When I do:
$q = 'insert into movies values("lion king"); select * from movies;';
$result = $db->query($q);
echo mysqli_num_rows($result);
it says that $result is boolean, not mysqli result.
if I check $result like this:
if(!$result) echo 'fail';
it outputs 'fail'.
Is mysql not capable of handling more than 1 query at a time? How do I solve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…