Let's start with what I am trying to do. Flash Gunz Registration. I am pretty good with flash and was able to make a MySql register. Now I am trying Unsucesfully to make a Mssql to GunZ reg Script. All I need is a VERY simple script for this. Don't need anything extra like antisql or Checking if email already exists.
Or you can tell me why the hell this script would not work.
Yes I removed all references to Email. It makes it easier. Please help. Person who makes this work, gets my flash source>.>Code:<?php // set your infomation. $dbhost='********\SQLEXPRESS'; $dbusername='sa'; $dbuserpass='blah'; $dbname='GunzDB'; mssql_connect("$dbhost", "$dbusername", "$dbuserpass")or die("cannot connect to server"); mssql_select_db("$dbname")or die ("no database"); // value sent from form //$Flashemail=$_POST['email']; //echo "$Flashemail"; $tbl_name=Login; //$sql="SELECT email FROM $tbl_name WHERE email='$Flashemail'"; //$result=mssql_query($sql); $count=mssql_num_rows($result); $rows=mssql_fetch_array($result); //$your_password=$rows['email']; //echo "$your_password"; //if($your_password==$Flashemail){ //$signal=4; //echo "signal=$signal"; //} else { if (!mssql_select_db("$dbname")) die(mssql_error()); $name = $_POST['name']; $pass = $_POST['pass']; //$email = $_POST['email']; $query = "INSERT INTO member (UserID, Password) VALUES('$name','$pass')"; mssql_query($query) or die(mssql_error()); //echo "$user succussfully registered!"; $signal=5; echo "signal=$signal"; } ?>
I am sorry, I had to repost this because some narb locked the other one. They must have smoked too much of something.



Reply With Quote![[Request/Help] PHP Registration](http://ragezone.com/hyper728.png)


