I'm using the date_format function as you described, but the echo is displaying nothing.
Here is my code. Will you please tell me if you see something wrong?
//Get the date display format correct
$date_get = mysql_query("SELECT DATE_FORMAT(date, '%M %d %Y')
FROM purchase_orders WHERE random='$random' & company='$company3'")
or die(mysql_error());
$date_got = mysql_fetch_array( $date_get );
$date_display = $date_got['date'];
I'm not getting any errors, just no results.
The echo line reads as follows:
<u><?echo $date_display; ?></u>
If I echo $date_get then I get
or something like that. If I echo $date_got then I get
If anyone has any ideas, please let me know, any help will be appreciated.
Thanks,
Johnie Karr
Church of Christ
www.godsbible.org