|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Jun 2010
Posts: 199
|
Not Sorting my db
My display is not being sorted as you can see on
this page. What am I doing wrong? PHP Code:
Last edited by RobbieG1977; 10-17-2011 at 02:46 PM. Reason: made a mistake |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
There are a few additional mistakes, on top of what your edit comment suggests.
First, you're not closing any of your statements. The only statements closed properly are the $sql = and the last $['AP'] statements. Second, what column are you attempting to sort by? What does your database look like? When you specify "ORDER BY" in your SQL statement, it will sort your results by that column.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Jun 2010
Posts: 199
|
Updated my errors
PHP Code:
I am sorting it by the 'gameid.' |
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Your syntax is correct.
However, I can't determine anything beyond that since your link is dead and I know nothing about your particular database. You'll have to provide some more information. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|