Jump to content

How to display MySql DATE in a better looking way?


Guest

Recommended Posts

I tried that but apparently not well as I don't get anything. Here is what I tried:

 

<?php
$sql = "SELECT DATE_FORMAT(event_start_date,'%d %b %y') as event_start_date FROM events WHERE id = '2'";
$result = mysql_query($sql);
echo $result;
?>

 

Any idea what I did wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.