Re: [PHP] problem with bind_param

2007-10-29 Thread Jeremy Mcentire
The PHP docs show: $stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)"); $stmt->bind_param('sssd', $code, $language, $official, $percent); for usage. Your $prep->bind_param() doesn't seem to include the definitions. 'sssd' in the above example, string, string, string

[PHP] problem with bind_param

2007-10-29 Thread Hulf
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 on line 21 $prep = $mysqli