View Single Post
Old 12-11-2012, 06:58 PM   PM User | #6
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,544
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
So my query is :
PHP Code:
$sql "SELECT * FROM pages WHERE page_id = $Db_page_id AND client_no = '$this_client' "
So if I want to include

DATE_FORMAT(pub_date, '%m/%d/%Y') AS formattedDate

then I'll have to list all the records I guess ??
( there are about 18 of them )

It seems to me it would be nicer to just reformat the result for that record.

Something like :

PHP Code:
$N_pub_date     strtotime("{$row['pub_date']}"); 
$N_pub_date     date("m/d/y"$N_pub_date); 
Can it not be done with php ??

Thanks.


.
__________________
If you want to attract and keep more clients, then offer great customer support.

Support-Focus.com. automates the process and gives you a trust seal to place on your website.
I recommend that you at least take the 30 day free trial.
jeddi is offline   Reply With Quote