Im trying to use this function when inserting into the database. Its not actually updating or inserting. This is what i have:
Is this corrent with %s and %d. Im actually a little unsure about these - (wildcards?). I copied this from the php.net site but i am doing something wrong and have no idea what?PHP Code:if($_POST['Submit']){
$Name=$_POST['Name'];
$Email=$_POST['Email'];
$UserName=$_POST['UserName'];
$pass=md5($_POST['pass']);
$sql=sprintf("update user set Name='%s', Email'%s',
UserName'%s', Password'%d'",
mysql_real_escape_string($Name),
mysql_real_escape_string($Email),
mysql_real_escape_string($UserName),
$pass);
mysql_query($sql,$con);





Bookmarks