|
Posted by sugapablo on 08/29/07 11:06
On Aug 29, 6:36 am, Michael Fesser <neti...@gmx.de> wrote:
> The ID is numeric, so it should not be treated as a string.
That's not the point. Regardless of what parameters I'm trying to
bind to any SQL statement I make, the variables are not being binded.
If I try:
<?php
$email = "test@test.com";
$sql = "select id,email from users where email = ?;";
$stmt = $mysqli->prepare($sql);
$stmt->bind_param('s', $email);
$stmt->execute();
?>
It still passes -> select id,email from users where email = ''; to the
server.
> What does bind_param() return? If FALSE - is there an error message
> (check the 'error' property of your statement)?
It returns 1. No error.
[Back to original message]
|