This is PHP's procedural way of using mysqli_real_escape_string
:
$city = "'s Hertogenbosch";
$city = mysqli_real_escape_string($link, $city);
As you can see, the method requires two parameters:
- The connection / link
- The string
Why do I need to specify the link? What If I just want to parse a regular string and then return an escaped string?