Jump to content

num_row error


phingoc

Recommended Posts

Warning: mysql_num_rows() expects parameter 1 to be resource

 

what am i doing wrong?

 

i have checked, double checked and tripple checked everything.

 

include("mysql_connect.php");
$query = "SELECT * FROM prod2011 WHERE dato BETWEEN '$nyfra' AND '$nytil'";
$antall = mysql_num_rows($query); // I get error on this line.
echo "Antall linjer i listen: " . $antall;

Link to comment
https://forums.phpfreaks.com/topic/252461-num_row-error/
Share on other sites

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.