View Full Version : forum stuff


Douglas
09-06-2005, 06:53 PM
im not very good at this one mysql thingy: ORDER BY,

its too order topics in my forum by last post date, if anyone could tell me or give me a tutorial that would be great

Douglas
09-06-2005, 08:36 PM
also if anyone could,
i made a pagination thing by myself and i need to know how it shows just 3 numbers then ... like this:
<First 55 56 57 Last>

Chaos_Blader
09-06-2005, 08:49 PM
MySQL is very confusing cause I can't find a site that has the syntax of MYSQL and hot to use it..??.

Douglas
09-06-2005, 08:52 PM
sorta off topic there Chaos_Blader lol

ZacEv
09-06-2005, 09:00 PM
Chaos Douglas known how to do this stuff.. If u need help with sumthing then make your own topic?

Chaos_Blader
09-07-2005, 12:55 AM
I am not sayin that I need help Im just sayin its hard to find good sites these days with already built stuuf on SQL besideds if you buy a bok it another story

Douglas
09-07-2005, 08:27 PM
ok so anyone know my question?

sputter
09-15-2005, 06:44 PM
okay ORDER BY will be a part of your SQL statement and to choose what you want to order by you simply put the column name

so it would show up at the end as:

SELECT * FROM table ORDER BY date DESC;

date will be the column name or what ever the name for your time posted is and DESC means it will sort them in descending order, you can use ASC for Ascending order as well. Here's a page to a tutorial if I made no sense.

Here it be ORDER BY explained (http://www.webdevelopersnotes.com/tutorials/sql/online_mysql_tutorial_ordering_data.php3)

Douglas
09-15-2005, 07:12 PM
thanks