Hi, i am writing a search result page. I want to query results from a sql table by specific date and hour in this page.
date and time saved in a same column (TIMESTAMP)
I was try with this code :
[php]
$date = $_GET[‘date’] ;
$hour = $_GET[‘hour’] ;
mysql_query(“SELECT * FROM table_name WHERE date_column LIKE ‘%{$date}%’ AND date_column LIKE ‘%{$hour}%’”);
[/php]
but this code is not perfect, because hour search not working correctly. Please anyone guide me.