problem with bind_param
| From: | Hulf | Date: | Mon, 29 Oct 2007 13:51:32 +0000 |
| Subject: | problem with bind_param | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-263780@lists.php.net to get a copy of this message | ||
Hi,
I am still having poblems with the php5 functions. I have 4 variables in
each. What is the problem?
Warning: mysqli_stmt::bind_param() [function.mysqli-stmt-bind-param]: Number
of elements in type definition string doesn't match number of bind variables
in xxxx on line 21
$prep = $mysqli->prepare ("UPDATE events SET title=?, date=?, content=?,
imageUrl=?");
$prep->bind_param ( $_POST['title'], $_POST['date'],
$_POST['content'],
$_POST['imageUrl']);
thanks,
H.