| Posted by Dimitri Marshall on 07/27/06 04:06 
Hi guys,
 generally new at most of this stuff. Just wondering what I might be doing
 wrong here.
 
 $sql = "SELECT * FROM $content ORDER BY DESC ID";
 $result = mysql_query($sql)
 or die ("Couldn't execute query.");
 
 that one doesn't work.
 
 this one does:
 
 sql = "SELECT * FROM $content";
 $result = mysql_query($sql)
 or die ("Couldn't execute query.");
 
 Now, the reason I'm doing this is so I can create unique IDs for the stuff
 in my database. I know there is probably another way to do this but I
 thought this was the easiest (I couldn't figure out the whole auto_increment
 thing.
 
 Thanks for any help!
 
 --
 Dimitri Marshall
 [Back to original message] |