Glad you figured it out. If you can, you really should upgrade your PHP installation.tattooartist wrote:I figured it out that the syntax for that string query will not work with my version of php. I changed it to
mysql_escape_string() and it went through. Since this onemysql_escape_string() is a deprecated query I figured it was my version of php being older. This old string worked but it is now getting caught up with this....
That sounds like the query encountered an error. It returns false if an error occures. So, lets do this. Change this line:tattooartist wrote:Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/pennstateind.com/httpdocs/php_test/library_search_test.php on line 711
Code: Select all
$result=mysql_query($query);Code: Select all
$result = mysql_query($query);
if (!$result) {
die(mysql_error());
}No trouble, though I appreciate the sentimenttattooartist wrote:I am so grateful for your help with this! Thank you. If it gets to be too much of a pain now worries:)