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?