Jump to content

mysql_num_rows result outside of function?


luminous

Recommended Posts

Hi,

 

I'm trying to set up a simple pagination script to display one image on the screen at a time. Basically I have a function that queries the database and returns the result after checking if mysql_num_rows == 0.

 

I need this mysql_num_rows value to use in my pagination script to set a limit for the 'next' button. however i'm also returning a result from the same function as an array.

 

I've tried to return the mysql_num_rows as a variable and test it outside the function (everything is routed and included correctly) but I get false with the the isset(); function everytime.

 

What am i doing wrong?

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.