03-18-2008, 11:56 AM
|
#25 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
How would you do this with sprintf:
PHP Code:
$szQuery = sprintf("SELECT DATE_FORMAT(postDate, '%d/%m/%Y') AS postDate FROM table WHERE id = %d", $iId);
This gives an error because of the %d from the DATE_FORMAT.
|
|
|
|