[osflash] AMFPHP INserting into database, Please HLP
Cordaro, Vince
vcordaro at echostorm.net
Tue May 1 10:27:59 EDT 2007
I am having trouble getting my insert into my mysql database to work.
My database has a table called Accounts and I 4 fields,
ID, primary Key, Int
username, varchar
password, varchar
email, varchar
I have tried all kinds of different things. I just can't seem to find a tutorial on how to write to the database.
This is my actually PHP insertAccount function:
/**
mysql_query("INSERT INTO Accounts(NULL,'".addslashes($username)."',
'".addslashes($password)."',
'".addslashes($email)."')");
**/
$sql = sprintf("INSERT INTO Accounts(NULL,%s,%s,%s)",$username,$password,$email);
$query = mysql_query($sql);
//return mysql_insert_id();
return $query;
Vince
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070501/01ae53e0/attachment.htm
More information about the osflash
mailing list