ciao,qualcuno sa dirmi dov'è l'errore di sintassi che explorer continua a darmi?
l'errore che mi da è:codice:<% ord = Request.Querystring("order") if ord = "tit" then ord = "Titolo" end if if ord = "ogg" then ord = "Oggetto" end if if ord = "data" then ord = "Data desc" End IF if lettera <> "" then SQL="SELECT * From news WHERE Titolo LIKE '" & lettera & "%'" else SQL="SELECT * From news ORDER BY "&ord&" " end if %>
Syntax error in ORDER BY clause.
/admin/list-news.asp, line 176
e la riga 176 è:
SQL="SELECT * From news ORDER BY "&ord&" "
a me sembra a posto...

Rispondi quotando