Hi,
I'm using this query in order to collate information on screen that meet two criterias' - 'Ordered' and 'Awaiting Confirmation'.
$sql = "SELECT *, DATE_FORMAT(inputdate, \"%d %M %Y\") AS inputdate FROM tblOrders WHERE status='Ordered' and ClientAC = " . $HTTP_SESSION_VARS["AccNum"] ." or status ='Awaiting Confirmation' and ClientAC = " . $HTTP_SESSION_VARS["AccNum"];
Does anyone know how i could optimize this query so that i don't have to restate the ClientAC condition?
Thanks in advance.