note 124822 added to mysqli.examples-basic

From: Date: Fri, 13 Mar 2020 15:26:26 +0000
Subject: note 124822 added to mysqli.examples-basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-214324@lists.php.net to get a copy of this message
Concatenating variables directly into a SQL statement is a huge anti-pattern that is likely to introduce a SQL injection exploit. MySQLi includes prepared statements, which allow you to safely pass variable data to a SQL query: https://www.php.net/manual/en/mysqli.prepare.php For more information on SQL Injection exploits please consult OWASP: https://owasp.org/www-community/attacks/SQL_Injection ---- Server IP: 45.112.84.4 Probable Submitter: 38.142.137.34 (proxied: 71.218.134.246) ---- Manual Page -- http://php.net/manual/en/mysqli.examples-basic.php Edit -- https://master.php.net/note/edit/124822 Del: integrated -- https://master.php.net/note/delete/124822/integrated Del: useless -- https://master.php.net/note/delete/124822/useless Del: bad code -- https://master.php.net/note/delete/124822/bad+code Del: spam -- https://master.php.net/note/delete/124822/spam Del: non-english -- https://master.php.net/note/delete/124822/non-english Del: in docs -- https://master.php.net/note/delete/124822/in+docs Del: other reasons-- https://master.php.net/note/delete/124822 Reject -- https://master.php.net/note/reject/124822 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214324) next »