Jump to content

[SOLVED] Number Order


Schlo_50

Recommended Posts

$query = "SELECT * FROM `database` ORDER BY `dat`";
$result = mysql($query);
if (!$result) { die(mysql_error()); }

while ($row = mysql_fetch_assoc($result)) {
echo $row['dat'].' , '.$row['message'].'<br>';

 

EDIT: You should change the dbfield to DATETIME if you're handeling only dates

Link to comment
https://forums.phpfreaks.com/topic/49505-solved-number-order/#findComment-242655
Share on other sites

link=topic=138678.msg588067#msg588067 date=1178044486]

$query = "SELECT * FROM `database` ORDER BY `dat`";
$result = mysql($query);
if (!$result) { die(mysql_error()); }

while ($row = mysql_fetch_assoc($result)) {
echo $row['dat'].' , '.$row['message'].'<br>';

 

EDIT: You should change the dbfield to DATETIME if you're handeling only dates

 

Cheers clown

Link to comment
https://forums.phpfreaks.com/topic/49505-solved-number-order/#findComment-242666
Share on other sites

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.