I have a PHP script vieworder.php that includes other scripts at the top.
<?php
include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";
//...
?>
I get an error on this PHP script. It tells me this:
Warning: mysql_num_rows(): supplied argument ... in vieworder.php on line 185
Do I need to refer only to line 185 of that vieworder.php script or do I need to take into account the included scripts? I am guessing the latter?
Also when it says "Warning" - can I pretty much ignore it? Or is this something I should be very concerned with?
I notice this error causes other errors for me such as:
Warning: Division by zero in ... vieworder.php on line 340
I am guessing its because 0 rows have been returned.
Apologies, for this messy question but I am noob and things are inter-related.
Update
So everyone can see this:
The first occurrence of mysql_num_rows() in vieworder.php is line 235. On line 185 there is an empty line and before that all the way to the top there is only 1 mysql_query?!!
Update 2
I will actually put this in another question.