ciao ragazzi... sto creando un sito dove pubblico delle notizie e quindi sono in fase di creazione delle pagine di amministrazione del Database.
Solo ke ho un problema ke non riesco assolutamente a risolvere... quando mando in esecuzione una pagina con IIS mi dice qst:
Tipo di errore:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'ID ='.
/sito/admin/Modifica_news.asp, line 21
ALLEGO UNA PARTE DI CODICE
[CODE]
<%
' CONTROLLA SE SI E' IDENTIFICATI
IF session("amministratore")<>true then
Response.Redirect "index.asp"
End IF
%>
<html>
<head>
<title>GESTIONE NEWS</title>
</head>
<body>
<%
' PERCORSO DEL DATABASE
url_DB = "driver={Microsoft Access Driver (*.mdb)};dbq=" & server.mappath("/sito/database.mdb")
Set Conn = Server.CreateObject("ADODB.Connection")
conn.Open url_DB
Set RecSet = Server.CreateObject("ADODB.Recordset")
' PRELEVA I DATI DELLA NEWS SELEZIONATA
SQL = "SELECT * FROM NEWS WHERE ID = " & Request.QueryString ("id") &""
RecSet.Open SQL, Conn, adOpenStatic, adLockOptimistic
' PASSA ALLA PAGINA "NEWS_DB.ASP" INOLTRE L'ID DELLA NEWS SELEZIONATA
%>
come posso risolvere?? grz in anticipo x le risposte ragazzi!![]()

Rispondi quotando
(
