|
<? foreach($admin as $a):?>
<?php echo $a['adminname'];?>
<? endforeach;?>
页面错误提示:
A PHP Error was encounteredSeverity: Notice
Message: Undefined variable: a
$admin数组打印出来是
array(4) {
[0]=>
array(3) {
["id"]=>
string(1) "1"
["adminname"]=>
string(5) "admin"
["adminpwd"]=>
string(32) "e10adc3949ba59abbe56e057f20f883e"
}
|
|