I am trying to get data from the url but it flagging this error…
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/83/4759683/html/DID_index/srch/searchkey2.php on line 79
The reason the argument is not a valid result resource is that your query was bad, so mysql_query returned FALSE instead of a result set.
Always a good idea to write and test your queries before adding them to your PHP code. All literal strings in SQL queries have to be enclosed by single quotes.
I don’t know what’s in your table. Print out the query instead of running it, then copy and paste that into your favorite mysql client to see what it returns yourself.
If there is no error then you are missing nothing except some data in the table that matches the conditions in where clause. So try to echo the query that the function $page1->get_limit_query($sql_c) returns and run this in phpmyadmin to see if there are records.
How many things should one see and suggest the OP before reply for a problem. I normally concentrate on the problem what OP has asked for. But obviously it is good if someone can just analyze the whole code and mention possible suggestions. You are the man Shrapnel who can see everything and good eyes you have