好吧,我正在做的事情不可能像我做的那样(我已经连续两天了......再次)但是是否可以通过 PDO 运行多查询并返回所有结果……像这样?
$sql =
"SELECT username, faction FROM users WHERE uid = :uid;".
"SELECT level, exp, health, luck, first_name, last_name FROM player_information WHERE uid = :uid";
$que = $this->db->prepare($sql);
$que->bindParam('uid', $uid);
try{
$que->execute();
$row = $que->fetchAll();
print_r($row);
}catch(PDOException $e){$e->getMessage(); }
还是我只是在叫错树?