just another question
| From: | aRZed | Date: | Mon, 23 Aug 2004 07:22:23 +0000 |
| Subject: | just another question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194453@lists.php.net to get a copy of this message | ||
Arzed wrote:
Hy! I have a relative simple question about mysqli_prepare: When I prepare a statement and then bind parameters to it, does php automatically care for escaping strings etc.? Example: -------- <?php $stmt = $mysqli->prepare("SELECT FROM table WHERE x=?"); $p = "5'" $stmt->bind_param("i",$p); # is "5'" converted to 5 like it would when i use intval($p)? $stmt->reset(); $s = "'xyz' || x LIKE '%'"; $stmt->bind_param("s",$s); # will those "'" be escaped? ?> thanks for helpSo it seems, that nobody knows what happens with those binded parameters. Is there a more precise documentation on the mysqli-object interface? Is there any code snipped that shows how the mysqli-classes would look like, when they were coded in php, like there is for the Extension class? aRZed