Date: 11/15/00
- Next message: David Robley: "Re: [PHP] Dreamweaver 4 ignores PHP - again"
- Previous message: Maxim Maletsky: "RE: [PHP] Dreamweaver 4 ignores PHP - again"
- In reply to: Ben Wiechman: "[PHP] MySQL SELECT question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
this might be of some help
http://www.mysql.com/documentation/mysql/commented/
you can do a search on time or date functions....
there are lots more..
eg : dayofmonth().. or .. month()..... etc...
one disadvantage of inserting a unix timestamp instead of a yyyy-mm-dd format is
that there is a limitation.. but it 's far from now.... a yyyddmm format gives
more flexibility....
but then again... a unix timestamp can be much more precise and date arithmetic
can be done easily in some cases...
[john]
Ben Wiechman wrote:
> Since I couldn't seem to uncover a decent example...
>
> Can I use multiple where clauses in a select statement?
> i.e.
>
> SELECT FROM table WHERE this = 'that'AND thishere = 'thatthere'
>
> And another question...
>
> I have a date field in my table
>
> Is it possible to match, for example, only the month?
>
> i.e.
>
> SELECT * FROM table WHERE FORMAT_DATE( DATE, %m ) = '<value from 1-12 here>'
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Robley: "Re: [PHP] Dreamweaver 4 ignores PHP - again"
- Previous message: Maxim Maletsky: "RE: [PHP] Dreamweaver 4 ignores PHP - again"
- In reply to: Ben Wiechman: "[PHP] MySQL SELECT question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

