Commit 625be9a8 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DBAL-118 - Add link parameter to example with mysql_real_escape_string

parent 69376a17
......@@ -72,7 +72,7 @@ every value passed into the query using ``mysql_real_escape_string()`` to avoid
.. code-block:: php
<?php
$sql = "SELECT * FROM articles WHERE id = '" . mysql_real_escape_string($id) . "'";
$sql = "SELECT * FROM articles WHERE id = '" . mysql_real_escape_string($id, $link) . "'";
$rs = mysql_query($sql);
If you start adding more and more parameters to a query (for example in UPDATE or INSERT statements)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment