i'm trying to execute this query and i can't figure it out why it doesnt work, it returns:
Fatal error: Cannot pass parameter 2 by reference
but i only have 1 parameter.
this is the code:
$GLOBALS['mysqli']->query("use ".$db."");
$stmt = $GLOBALS['mysqli']->prepare("SELECT * FROM item_template WHERE name LIKE ?");
$stmt->bind_param("s","'glyph of%'");
$stmt->execute();
$result = $stmt->get_result();
Thanks all in advance.