Reply to ORDER BY?!?!

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация