note 123588 deleted from function.mysqli-escape-string by peehaa

From: Date: Sun, 28 Apr 2019 10:52:29 +0000
Subject: note 123588 deleted from function.mysqli-escape-string by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210828@lists.php.net to get a copy of this message
Note Submitter: Tom Cat ---- I'm not sure why $string = $conn->escape_string($_POST["data"]); has been downvoted into obvlivian, but it is the only thing that works if you're using the mysqli class. For example <?php print "function output: " . mysqli_escape_string($_REQUEST["foo"]) . "\n"; print "method output: " . $mysqli->escape_string($_REQUEST["foo"]) . "\n"; ?> prints: function output: method output: bar This is with php 7.0

« previous php.notes (#210828) next »