Why does this code doesn't update my database?

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Active User
php-forum Active User
Posts: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Sat Oct 18, 2014 4:44 pm

Yeah that query doesn't look right (comma before where clause). See my signature(!) echo back the query and try running it in your query tool. I would strongly recommend using mysqli or PDO instead of the mysql extension, which is deprecated. PDO uses try{} catch{} blocks to check for errors, so if a query errors out, you can show the error while you're testing code.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest