Slight correction, for some reason the query below does NOT work on my
sample DB unless I quote the date values.
This should work now:
SELECT IP, Size, Date FROM your_table
WHERE Date BETWEEN '2001-02-01' AND '2001-05-01';
>
> so and i have Mysql table with
> IP | Size | Date |
> --------------------------------------
> 213.32.44.11 | 34444 |2001-01-11-12|
> --------------------------------------
> 213.32.44.11 | 34444 |2001-01-11-13|
> --------------------------------------
> 213.32.44.12 | 34444 |2001-01-12-12|
> --------------------------------------
> 213.32.44.14 | 34444 |2001-01-13-17|
> --------------------------------------
> 213.32.44.16 | 34444 |2001-01-14-11|
> --------------------------------------
> 213.32.44.111 | 34444 |2001-02-15-10|
> --------------------------------------
> 213.32.44.121 | 34444 |2001-01-13-10|
> --------------------------------------
> 213.32.44.131 | 34444 |2001-01-15-10|
> --------------------------------------
>
>
> So i need SELECT from table only record between values
> $dat1 and $dat2
> how to do this ?!
> Thx
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php