Hi
I am trying to build a search function on php its working fine but as there are lot of records on database from past it runs very slow. is there way to make it so it only looks up from today's date to future dates nothing in past search term i am using is here
I am trying to build a search function on php its working fine but as there are lot of records on database from past it runs very slow. is there way to make it so it only looks up from today's date to future dates nothing in past search term i am using is here
Code:
$query = "SELECT * FROM diary WHERE $searchterm LIKE '%$search%' LIMIT 0, 50 "; $results = mysql_query( $query );
Comment