[EMAIL PROTECTED] wrote:
Hi ,

The  user  have to choose 2 date ($date_begin & $date_last) and i want
to  know  howcan  i  make  to find field in mysql where field included
between ($date_begin & $date_last)

"SELECT  *  FROM  `news`  WHERE  `date`  included  in  ($date_begin  &
$date_last)"


$q=mysql_query('select * from news where `date` >= "'.$date_begin.'" and `date` < "'.$date_last.'" + interval 1 day');


you should rename the field you have called `date` - it's ambiguous.

Kae


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to