Thread: Error?
View Single Post
Old 06-15-2009, 06:10 PM   #5 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Isn't mysql_num_rows for SELECT, and mysql_affected_rows for INSERT? It is a while since I communicated with the MySQL functions directly, but I am sure you're looking for mysql_affected_rows in that scenario, not mysql_num_rows.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
Randy (06-15-2009)