Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Row(s) affected in mysql update with PHP
(1 viewing) (1) Guest
All your queries regarding
MySQL Installation,
Learning MySQL DBA,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

Row(s) affected in mysql update with PHP

Row(s) affected in mysql update with PHP 10 months, 3 weeks ago #649

  • manav
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 0
How do i find if my update is successful or not? i update using a where uniqueName=name so i should always only update 0 rows or 1. What is a good way to check if i updated a row or not?

Re: Row(s) affected in mysql update with PHP 10 months, 3 weeks ago #650

  • sandhya
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
mysql_affected_rows() will return the number of rows affected by your update.
  • Page:
  • 1
Time to create page: 2.32 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download