|
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]
|