php-db | 2001041
Date: 04/11/01
- Next message: Manuel Prieur: "[PHP-DB] mssql - unable to read large text fields"
- Previous message: Zeus: "[PHP-DB] Uploading file into database"
- Maybe in reply to: Walter Franssen: "[PHP-DB] OBDC date problems"
- Next in thread: Andrew Hill: "Re: [PHP-DB] OBDC date problems"
- Reply: Andrew Hill: "Re: [PHP-DB] OBDC date problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i think you need
SELECT * FROM news WHERE fdate >= '$date' AND tdate >= '$date'
the dates have to be single-quoted in your query string
i generally use
$query = "SELECT * FROM news WHERE fdate >= '".$date."' AND tdate >=
'".date."'";
this may not be the best way and i would really appreciate it if someone
could give me the 'correct' way. it's the way i used when i first started
using php and have kinda kept it ....
Steve
> -----Original Message-----
> From: Walter Franssen [mailto:w.franssen <email protected>]
> Sent: 11 April 2001 10:47
> To: php-db <email protected>
> Subject: [PHP-DB] OBDC date problems
>
>
>
> Hello, i have some problems with date's in a query like
>
> SELECT * FROM news WHERE fdate >= $date AND tdate >= #date
>
> Can someone help me
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Manuel Prieur: "[PHP-DB] mssql - unable to read large text fields"
- Previous message: Zeus: "[PHP-DB] Uploading file into database"
- Maybe in reply to: Walter Franssen: "[PHP-DB] OBDC date problems"
- Next in thread: Andrew Hill: "Re: [PHP-DB] OBDC date problems"
- Reply: Andrew Hill: "Re: [PHP-DB] OBDC date problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

