On Wed, Sep 29, 2010 at 11:41 AM, Serkan Temizel <[email protected]> wrote: > Hi, > > For security purposes I always limit my delete statements. > > $db->delete('user', $db->quoteInto('id_user=?',$idUser))->limit(1); does not > seem to work. > > Documentation does not mention about such limited delete statements. > > Any solutions? > > Serkan >
There is one single instance where I'm actually needing the limit on a delete and there I use the query method instead of delete. From the API I cannot see how this would work otherwise, but I can say for certain your solution wont work, as the delete command sends back the number of deleted rows, so chaining another command to it always fails. -- Greetings, Christian Riesen http://christianriesen.com/ - My personal page http://toreas.com/ - Toreas a free fantasy novel http://gamewiki.net/ - Open Videogames Wiki
