According to http://us2.php.net/manual/en/mysqli-stmt.bind-param.php, the different types are:
i corresponding variable has type integer
d corresponding variable has type double
s corresponding variable has type string
b corresponding variable is a blob and will be sent in packets
However, how can you handle this:
->prepare("SELECT blabla FROM foo WHERE id IN (?)")
Where ? would be a list of ids. There could be one or more items:
$ids = "3,4,78";
->bind_param('s',$ids);
Is that possible?
I'd like to use prepared statements because it will be executed in a loop.