[PHP] Mysqli::prepare + select ... where ... in + array

2008-08-26 Thread hanshenp
Hey there I have been toying around with the following code for a few days: //Gets the tokens defined in the array $tokensToGet, with the language defined by $languageId public static function GetTokens($tokensToGet, $languageId) { $query = @"SELECT Name, Value FROM

[PHP] Mysqli::prepare + select ... where ... in + array

2008-08-26 Thread Hans Henrik Petersen
Hey there I have been toying around with the following code for a few days: prepare($query)) { $stmt->bind_param('si', $tokensToGet, $language); $stmt->Execute(); $stmt->Bind_result($name, $value); while($stmt->fetch()) { $tokens