Jump to content

how to use insert query


doforumda

Recommended Posts

i am using this insert query

 

$query = "INSERT into cv(quiz) values('".$score."') WHERE id='".$lastId."'" or die(mysql_error());

 

but this is not working it displays this error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id=25' at line 1

 

how to remove this error

Link to comment
https://forums.phpfreaks.com/topic/177914-how-to-use-insert-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.