RE: [PHP-DB] CONVERT STRING VARIABLES TO DATES, THEN COMPARE (HOW?)

2003-11-07 Thread Oscar Rylin
Strtotime() Look it up in the manual :-) -Original Message- From: Karen Resplendo [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 19:44 To: [EMAIL PROTECTED] Subject: [PHP-DB] CONVERT STRING VARIABLES TO DATES, THEN COMPARE (HOW?) Apache on NT using MS SQL Srvr 2000 PHP 4.03pl1 I

Re: [PHP-DB] CONVERT STRING VARIABLES TO DATES, THEN COMPARE (HOW?)

2003-11-07 Thread Jason Wong
On Saturday 08 November 2003 02:44, Karen Resplendo wrote: Apache on NT using MS SQL Srvr 2000 PHP 4.03pl1 I return these dates into strings and now I want to compare my database date to see if it is later than today's date. Pretty sure my Expires field is a string: Here is the Expires

Re: [PHP-DB] CONVERT STRING VARIABLES TO DATES, THEN COMPARE (HOW?)

2003-11-07 Thread Karen Resplendo
Yes, the values echo out the way I expect them. But these are displayed values, not dates, I'm pretty sure, and that is why the comparison is failing. The question began very simply. I will try to make it simpler: How do I compare a string date from a database to today's date using PHP? I can

Re: [PHP-DB] CONVERT STRING VARIABLES TO DATES, THEN COMPARE (HOW?)

2003-11-07 Thread Karen Resplendo
Education :) (it seems like such a simple thing to do, to look up, to have in someone's library of code, yet. . . . . . .) I can do it with my eyes closed in SQL. I don't want to if I can avoid it. It's more efficient to do so, so can I ask why you want to avoid it? -- Jason Wong -