i am trying to make this query work
$key = $db->getAll("SELECT `key`
FROM `".PREFIX."user_stats`
WHERE `article_id` = ?i
AND `domain` = ?s
AND `userid` = ?i",
$article_id, $domain,$userid);
i use SafeMySql and getAll is Helper function to get all the rows of resultset right out of query and optional arguments
i want to echo key where 3 other columns match the input.
with the above query i get output "Array" nothing else.
See Question&Answers more detail:os