[Solved] Mysql & PHP Error [closed]


2014-02-18 05:25:38 is a very very specific time to query. You’re only using one of your variables. You probably mean something like this:

$from=$_POST["datefrom"];
$to=$_POST["dateto"];
SELECT * FROM ss_orders where 
order_time >= '".$from."' AND 
order_time <= '".$to."' limit 60

Also, switch to mysqli or PDO and sanitize those inputs. If this is a public form you could be subjecting yourself to sql injections. mysql_ functions are deprecated.

1

solved Mysql & PHP Error [closed]