🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1166

Re: Rare fout bij ASP

#1166
From: RG
Date: Thu, 18 Aug 2005 14:55
33 lines
2060 bytes
"Passero" <mdsqkf@dsqmkfj.be> schreef in bericht 
news:1124350242.162819@bru-ix-srv240...
> Tim Van Wassenhove schreef:
>> On 2005-08-17, Passero <mdsqkf@dsqmkfj.be> wrote:
>>
>>>function getCount(catID)
>>>   q = "select count(*) from table where catID = " & catID
>>>end function
>>
>>
>> Btw, als je een beetje SQL injection wil voorkomen kan ik je aanraden om
>> op te zoeken hoe je ADODB (Command en Parameter) kan gebruiken.
>>
>
> Het was als voorbeeld
> En er staat wel degelijk een return waarde
> Ik weet ook dat ik daar moet oppassen maar het is gewoon dat ik daar die 
> error krijg.
>
> Of ik nu schrijf: q = "select * from ... where bla = " & value
> of
> q = session("id")
> of
> eenVariabele = "Mijn zin " & session("id")
> of
> eenVariabele = "Mijn zin " & eenAndereVariabele
>
> Dan krijg ik die fout, daar gaat deze thread ook over


Lees mijn replay van 18/8/2005 14.52uur
deze fout is doodnormaal 
Technical Details
Message-ID: <Cj1Ne.172272$Ih7.9551982@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!news2.volia.net!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <1124309236.879909@bru-ix-srv240> <de0nbm$th0$1@ikaria.belnet.be> <1124350242.162819@bru-ix-srv240>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,22166f304e05a8b8
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!news2.volia.net!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "RG" <no@spam.com>
Newsgroups: be.comp.programming
References: <1124309236.879909@bru-ix-srv240> <de0nbm$th0$1@ikaria.belnet.be> <1124350242.162819@bru-ix-srv240>
Subject: Re: Rare fout bij ASP
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
Message-ID: <Cj1Ne.172272$Ih7.9551982@phobos.telenet-ops.be>
Date: Thu, 18 Aug 2005 14:55:30 GMT
NNTP-Posting-Host: 213.119.96.235
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1124376930 213.119.96.235 (Thu, 18 Aug 2005 16:55:30 MEST)
NNTP-Posting-Date: Thu, 18 Aug 2005 16:55:30 MEST
Organization: Telenet Internet