function setting($a){ foreach($dbh->query("select * from setting where `name`='".$a."'") as $row){echo $row['main'];} }
已经证明foreach的语法没有错误