Non-Object errors

From: Date: Tue, 28 Apr 2009 16:11:20 +0000
Subject: Non-Object errors
Groups: php.general 
Request: Send a blank email to php-general+get-292084@lists.php.net to get a copy of this message
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

« previous php.general (#292084) next »