Ben bugüne PHP mysql select alınamıyor

0 Cevap php

Ben biçimi 2011/01/08 06:10:11 gibi güncel veritabanı kayıtları var, ama ben aşağıdaki select ile tarihleri ​​SEÇ gerekir:

$q = mysql_query("SELECT id FROM events WHERE start = '".date("Y-m-d")."'");

So PHP doesn't select anything! When I set the time in the data base to the format 2011/01/08 00:00:00, the PHP selects this day

Please help me selecting the date whatever the time was. THX

0 Cevap