Well, simply echoing out "Records updated" does nothing to confirm that anything actually worked. Without checking the return value of mysql_query() and doing some error logging/reporting if it's false, there's no way to tell if the query was even accepted as valid by MySQL. And even if it is valid syntax, that does not mean any rows actually got updated (e.g. if the where clause did not match any record) in which case you can use mysql_affected_rows() to determine how many rows were updated (and again do some error logging/reporting if it returns zero).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)