Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.mixmin.net!feed.xsnews.nl!border-3.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1855355.moRiKyyJZ1@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 06 Nov 2012 19:53:50 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <2525795.FS5DWkFXQh@PointedEars.de> <1378599.qsJR3PFr2n@PointedEars.de> Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 32 NNTP-Posting-Date: 06 Nov 2012 19:53:51 CET NNTP-Posting-Host: c77808f9.newsspool4.arcor-online.net X-Trace: DXC=j?cI@nNg@IiPXlQ;h]GTMd4IUKK`Nj95_PeH=`fbX7`]3JPdRa X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.php:7479 Shake wrote: > El 06/11/2012 19:13, Thomas 'PointedEars' Lahn escribió: >> You are mistaken. Whether the query is syntactically wrong in the DBMS >> depends on the data type, the value of the variable (that we do not know, >> do we?) and the query language. > > You do not know. I know it. > Your limitations are not my mistake. > > mytable.drawing values have to be enclosed by quotes. Oh shut up. How can you possibly *know* the value of the variable $drawing when the OP has not posted it? All you have is conjecture. >> The actual and much more grave issue here is that the OP is using user >> input >> ($_POST['…']) unchecked and unescaped, which allows for SQL injection. >> If they fixed that with Prepared Statements, both problems would go away. > > Right. Still not a MySQL issue: An SQL issue. Bullshit. It is obvious that the OP is using MySQL; so their MySQL syntax is at fault and their approach, too. PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee