Jump to content

[SOLVED] Problem with mysql_num_rows


mwalsh

Recommended Posts

Yeah, I'm gonna have to take a fresh look at it in the morning. I'm about to fall asleep right now.

 

Thanks for your help!!!!

 

Actually, it's not as catastrophic as I first though, just change UPDATE to INSERT.  UPDATE overwrites already existent data.

I agree that's why I was trying to count the rows. If there are more than 0 rows then an Update would be appropriate, otherwise an Insert should be used. The problem is that mysql_num_rows isn't returning the proper number of rows consistently

Archived

This topic is now archived and is closed to further replies.

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