Article View: be.comp.programming
Article #1165Re: Rare fout bij ASP
From: Passero
Date: Thu, 18 Aug 2005 07:32
Date: Thu, 18 Aug 2005 07:32
26 lines
1785 bytes
1785 bytes
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
Technical Details
Message-ID:
<1124350242.162819@bru-ix-srv240>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.astraweb.com!news-router2.astraweb.com!not-for-mailReferences:
<1124309236.879909@bru-ix-srv240> <de0nbm$th0$1@ikaria.belnet.be>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!news4.google.com!news.glorb.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.astraweb.com!news-router2.astraweb.com!not-for-mail Date: Thu, 18 Aug 2005 09:32:37 +0200 From: Passero <mdsqkf@dsqmkfj.be> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 Newsgroups: be.comp.programming Subject: Re: Rare fout bij ASP References: <1124309236.879909@bru-ix-srv240> <de0nbm$th0$1@ikaria.belnet.be> In-Reply-To: <de0nbm$th0$1@ikaria.belnet.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Organization: EVONET Message-ID: <1124350242.162819@bru-ix-srv240> X-EVOPath: unknown@cust70-66.dsl.versadsl.be Lines: 26 NNTP-Posting-Host: 6eca5307.news.astraweb.com X-Trace: DXC=KMQ8I]UQ4ITaaSDeVe\e2]L?0kYOcDh@ZlQ3_7EoKZ<^P\mNlGj0Fg]F7]d8hkS@2\cg@CBPj;SiR\F<kXO>3?iX