--- Pete <[EMAIL PROTECTED]> wrote:

> In message <[EMAIL PROTECTED]>, Edwin <[EMAIL PROTECTED]> writes
> >thanks Wade...I don't know that my webhost has different PHP version
> >with mine...So, what should I do if the SQL command doesn't work?
> >
> >this is my SQL command which has error...
> >
> >select * from tbldiskusi where topik_id = $row[topik_id] ORDER BY
> >'dtglpost' DESC
> 
> You shouldn't need the quotes, assuming that dtglpost is a field name.
> 
> -- 
> Pete Clark

The single quote (') is used to contain a string of characters.  The backtick
(`) may be used around a field name.  On some fonts these characters can look
very similar so if one was copying an example from a book, the wrong one might
be used.

The single quote in this case could easily confuse the ORDER BY clause or at
least generate results other than those expected.

James

Reply via email to