<%
id = Request.QueryString("catid")
Set crs = Server.CreateObject("ADODB.RecordSet")
cSQL = "Select * FROM ARTICLE_CATS WHERE cat_id = "&id&""
crs.open cSQL,Connection,3,3
Set ars = Server.CreateObject("ADODB.RecordSet")
arSQL = "Select * FROM ARTICLES WHERE cat_id= "&id&" AND a_approved = True ORDER BY a_date DESC"
ars.open arSQL,Connection,3,3
%>
<% do while not ars.eof %>
<img border="0" src="IMAGES/site/icon.gif" width="9" height="9"> <a href="<%=sett("site_adres")%>/articles.asp?action=read&aid=<%=ars("aid")%>"><%=duz(ars("a_title"))%></a></br>
<% ars.MoveNext
Loop %>
bu sayfayı ana sayfaya cağırdığımda ODBC Microsoft Access Sürücüsü] 'cat_id =' sorgu ifadesi içindeki Sözdizimi hatası (eksik işleç)
/1/fark.inc, line 6
bu hatayı alıyorum..
Sözdizimi hatası (eksik işleç)
Kod: Tümünü seç
ylmz="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.mappath("[b]DB YOLU VE ADI[/b]")&";Persist Security Info=False"
Set Connection=Server.CreateObject("ADODB.Connection")
Connection.Open ylmz