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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -