luminous Posted December 15, 2009 Share Posted December 15, 2009 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? Link to comment https://forums.phpfreaks.com/topic/185171-mysql_num_rows-result-outside-of-function/ Share on other sites More sharing options...
luminous Posted December 15, 2009 Author Share Posted December 15, 2009 I think I worked it out! Simply use the return array then load it up with both the result value and num posts value! Link to comment https://forums.phpfreaks.com/topic/185171-mysql_num_rows-result-outside-of-function/#findComment-977488 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.