Jump to content

Search Engine Help


edgustaf

Recommended Posts

I am getting this error when I try to use my search engine that i developed.  Does anyone know what it means.

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/edgustaf/public_html/cit313/search.php on line 46

 

I attached my search.php file

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/202549-search-engine-help/
Share on other sites

still a newbie myself but i think this is the problem..

 

$run = mysqli_query($connect,$construct);

 

i dont see $connect in the coding..

 

nvm just seen theres a include for ("includes/connect.php"); which prolly has that var.. but im still thinkin all you need in the query is just $construct i could be totaly wrong

Link to comment
https://forums.phpfreaks.com/topic/202549-search-engine-help/#findComment-1061827
Share on other sites

I tried that as well and it gives me these errors.

 

Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/edgustaf/public_html/cit313/search.php on line 45

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/edgustaf/public_html/cit313/search.php on line 46

Link to comment
https://forums.phpfreaks.com/topic/202549-search-engine-help/#findComment-1061837
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.