ciao a tutti..
ho una tabella ORDINI, dove all'interno c'è un campo per l'inserimento della data di creazione ordine....
Avrei bisogno di selezionare tutti gli ordini con la data del giorno attuale...ma il risultato e che la query non mi seleziona niente...
il campo data e nel formato (mm/gg/aa hh:mm:ss)
vi posto il tutto...
dove sbaglio?codice:$today=date("m/d/Y"); $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . " ' and o.date_purchased LIKE '".$today."%' and ot.class = 'ot_total' order by o.orders_id DESC";
grazie a tutti...
ale

Rispondi quotando