21,890
社区成员
发帖
与我相关
我的任务
分享
function wuMing(){
global $mysqli;
$x="select * from x";
$xun=$mysqli->query($x);
$i=0;
while($x=$xun->fetch_assoc()){
echo $a=$x['Name'],$i++.'<hr>';
wuMingShengCheng($a);
}
}
function wuxsming($fenleiming){
global $mysqli;
echo $fenleiming;
$daohan="select * from class where Name='$fenleiming'";
$dh=$mysqli->query($daohan);
$d=$dh->fetch_assoc();
echo $xiaoshuofenlei=$d['Name'];
$dh->free();
$mysqli->close();
}
function wuMing(){
global $mysqli;
$x="select * from x";
$xun=$mysqli->query($x);
$i=0;
while($x=$xun->fetch_assoc()){
echo $a=$x['Name'],$i++.'<hr>';
wuMingShengCheng($a);
}
}
function wuMingShengCheng($a){
echo $a;
}
就是这么简单的 输出为
name1
name1
name2
就三条。
name1 wuMing echo 出来的
name1 wuMingShengCheng echo 出来的
name2 wuMing echo 出来的
没了。
如果是wuMingShengCheng 的问题。而这个函数只有echo。没其他。

$mysqli->close();