我有这个代码:
$sql = "SELECT personid FROM accountpersonmap WHERE accountid = :accountid; ";
$array = array(
'accountid' => $eachRow['accountid']
);
$sth = $dbh->prepare($sql);
$sth->execute(array(':personid' => $personid))
echo $personid;
我只想要personid好吗?我用谷歌搜索但没有找到我要找的东西。
谢谢