Reply to Re: ORDER BY?!?!

Your name:

Reply:


Posted by Dimitri Marshall on 07/27/06 04:22

Ok I figure it out and yes, I feel like an idiot. In all fairness though,
the book I was reading had it that way. No, I probably won't sue this time.

Thanks anyway,

--
Dimitri Marshall

"Dimitri Marshall" <recipient@shawRemoveThis.ca> wrote in message
news:bZWxg.245163$Mn5.40872@pd7tw3no...
> 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

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