Updating field in mysql database
Posted: Tue Mar 15, 2005 9:58 am
Trying to update my database using the following line of code, though nothing seems to be happening. Any suggestions as to why not? Thanks
Code: Select all
$userid="cs";
$sql=mysql_query("UPDATE test SET forename = 'Micko' WHERE userid = $userid");