[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: håndtere fejl i mysql querys



On Fri, 01 Jul 2005 14:41:25 +0200, Atte wrote:

> <snip> SELECT bla FROM customer WHERE companyname REGEXP ".*" </snip>. 

Hva' sker i dit program hvis brugeren indtaster dette som regulært
udtryk:

 .*"; DELETE FROM customer LIMIT 1000; SELECT * FROM customer WHERE companyname = "haha

eller lignende?


Hvis jeg havde løst det problem, ville jeg i Perl bruge eval { tjuhej }; og
checke om det gik godt. Måske PHP har noget tilsvarende?


  Mvh.  

-- 
 "Du danser godt, men ude af takt"                            Adam Sjøgren
                                                         sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *