find out about update results

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

find out about update results

Post by Burrito »

Know this has been answered before do I. In a huge hurry I am.

need to know how to determine if an update query updated any results I do.

ex:

Code: Select all

$isupdate = mysql_query("update myTable set myField = 1 where myOtherField = 'me'");
sorry to ask this question am I, but in a huge hurry I am....

Burrito
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

mysql_effected_rows its either that or somthing similar, it will return how many rows were effected by the query
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Post Reply