Jump to content

Recommended Posts

Does your error checking and error reporting logic in your code indicate that the mysql_query() statement executed without errors and does your mysql_affected_rows() statement in your code indicate that the row was updated or not?

 

Short answer: Just posting a query statement out of context does not help anyone determine why it doesn't work. You have got to determine what your code IS doing to pin down which of the several possible reasons it might not be working -

 

You could have a problem with your connection to the database server; a problem with selecting a database; your $tbl_name2 variable might not have anything or might not have the correct thing in it; your column name(s) in the query might not be correct for the table you are using; you might not be executing the a mysql_query() statement at all or it might not have the $sql variable in it...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.