Page 1 of 1

sprintf date type specifier

Posted: Fri Aug 10, 2007 3:32 am
by aceconcepts
Hi,

I am trying to insert some data into a MySQL database. One field is formatted as DATE, how do insert my date value variable into the table using sprintf?

My date to be inserted is stored in one single variable, not three.

Thanks.

Posted: Fri Aug 10, 2007 3:54 am
by dude81
pass date as a string, use %s for sprintf