Hello. I have a php script that is pulling records from a database. Everything up until now has been working great. Even now the first page of results show up as they should. (5 records are displayed per page) When I click on "next page" to view more results I get the following errors -- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource... and Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource... I have not made any changes to the code. It just started acting up like this. The only change on the server has been from php 4.3 to 4.4. Does anyone know what may be happening? I would greatly appreciate anyones guidance on how to correct it.
cjackson111
0
Newbie Poster
Recommended Answers
Jump to PostPerhaps you're not running your query right the second time. Hard to say without code.
Jump to PostAn upgrade could possibly cause it. Try running:
$result = mysql_query($query) or die(mysql_error());
to see if the query fails.
All 8 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
cjackson111
0
Newbie Poster
cjackson111
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
cjackson111
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
cjackson111
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.