UPDATE in mysql didn't work in my PHP page. -
first of i'm rookie programming, created php page update value mysql(myadmin) database, value not updating. tried retrieve values database it's working fine update code not working! don't know why, please check out code below.
$qs=mysql_query("update staff set review=$newrate name=$rateuser"); $resu=mysql_query($qs);
all variables double defined, assigned proper values, checked , tested variables using echo, table name checked, it's fine, think problem update query, searched internet syntax it's not different mine. please me out
how $newrate , $rateuser set?
mysql_query("update staff set review = '".mysql_real_escape_string($newrate)."' name = '".mysql_real_escape_string($rateuser) ."'");
http://php.net/manual/en/function.mysql-real-escape-string.php
Comments
Post a Comment