Why does this code doesn't update my database?

Links for php scripts

Moderators: macek, egami, gesf

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

Re: Why does this code doesn't update my database?

Post by freshnet » 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

Who is online

Users browsing this forum: No registered users and 1 guest