php - Can't update record in mysql -


my query returns me error, please let me know i'm doing wrong

$q="update 'id' set 'pass'='$pass1' 'name'='$user1'"; 

your sql wrong:

$q="update 'id' set 'pass'='$pass1' 'name'='$user1'"; 

it should like:

$q="update id set 'pass'='$pass1' 'name'='$user1'"; 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -