View Single Post
08-04-2008, 06:07 PM
#1
Caden is offline Caden
Status: Junior Member
Join date: Jul 2006
Location: Denver, Colorado
Expertise:
Software:
 
Posts: 66
iTrader: 0 / 0%
 

Caden is on a distinguished road

Send a message via AIM to Caden Send a message via MSN to Caden

  Old  Insert into database help?

OK I have this form that inserts stuff into a database so I can later display the information I insert. And I order it by newest, the code I use for that is

Code:
$queryRecent = "SELECT name FROM table ORDER BY name DESC LIMIT 0,10";
Is this wrong or right? What I want it to do is display the newest one I inserted on top, because it's a Top 10 Recent Updates section. It inserts everything I do, but sometimes doesn't display it before the older ones I've inserted which is the whole point of this script.

But anyway, when I looked in phpMyAdmin in my table, it had some of the stuff I entered into it, but also a bunch of empty fields as well. What could be the problem?