Can someone help with how to make this work, trying to get the number of
rows but am getting the "trying to get property of non-object"

Code-----------------

$query = "select blah, blah, blah from table where ".$type." like
'%".$name."%'"; 
  
$result = mysql_query($query); 

$num_results = $result->num_rows; <---------------this is the line with
error


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to