Jump to content

Pagination


deansaddigh

Recommended Posts

IM getting an error

 

Warning: Wrong parameter count for mysql_num_rows() in \\nas44ent\domains\l\languageschoolsuk.com\user\htdocs\admin\view_enquiries.php on line 55

 

Heres the sql, i want to get the number of rows so i can do some pagination but it doesnt like it

 

 $query = "SELECT * FROM enquiry  ORDER BY date DESC";			  
					$result = mysql_query($query, $conn)
					or die ("Unable to perform query");	
					//Number of rows for pagination
		  			$rows = mysql_num_rows($query, $conn);

 

Does anyone know what i am doing wrong

Link to comment
https://forums.phpfreaks.com/topic/193413-pagination/
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.