you must say:
$query = mysql_query("SELECT * FROM `table` ORDER BY 'date' DESC") or die(mysql_error());
I think you must say ORDER BY
you must say:
$query = mysql_query("SELECT * FROM `table` ORDER BY 'date' DESC") or die(mysql_error());
I think you must say ORDER BY
liamallan (02-16-2010)
no, just name and profile. will i need to add an id or date column?
Yes. In PHPmyadmin click on the table you're using and then press SQL and put this code in:
Then for the query:Code:ALTER TABLE `table-name` ADD `id` INT NOT NULL AUTO_INCREMENT , ADD PRIMARY KEY ( `id` )
Code:$query = mysql_query("SELECT * FROM `table` ORDER BY 'id' DESC") or die(mysql_error());
Jeremy | jfein.net
liamallan (02-16-2010)
thanks guys, working perfect now! top dollar!
Glad to help you! Your welcome!
It seems your topic is solved... Please set the status to resolved.. To do this:
Go to your first post ->
Edit your first post ->
Click "Go Advanced" ->
Then in the drop down next to the title, select "RESOLVED"
Jeremy | jfein.net
Bookmarks