php Update command
Posted: Sat May 24, 2008 6:16 am
I m trying to update the database but my update command is not working ....plz help??
command:
-------------------------------------------------------------------------------------
mysql_query("UPDATE user SET
'username' = '$_POST[student_name]' and 'Address' = '$_POST[address]'
WHERE 'id' = '$_GET[stud_id]' ");
command:
-------------------------------------------------------------------------------------
mysql_query("UPDATE user SET
'username' = '$_POST[student_name]' and 'Address' = '$_POST[address]'
WHERE 'id' = '$_GET[stud_id]' ");