php编程的一个问题,附代码 第二行 whilewhile($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){ 你取的值存到 $line_top 了打印$line当然没东西 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 正解,把:while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){echo $line["picture_id"];if($i%2){echo " <tr>";;}echo " <th height=\"2\" scope=\"row\">";echo " <a href=\"admin_user_show_picture.php?picture_id=".$line["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> →票数统计结束为".$line_top["vote_num"]." </td>";if($i%2==0){echo " </tr>";} 改为:while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){echo $line_top["picture_id"];if($i%2){echo " <tr>";;}echo " <th height=\"2\" scope=\"row\">";echo " <a href=\"admin_user_show_picture.php?picture_id=".$line_top["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> →票数统计结束为".$line_top["vote_num"]." </td>";if($i%2==0){echo " </tr>";} php中单引号和双引号混合使用的问题 php文件打不开、 请问这行PHP代码是什么意思? PHP的is_file()和is_dir()问题 显示隐藏的问题,在线等 小女子急需:ThinkPHP中 生成静态页面的代码,需要配置什么 当任意选择一个<select>中一个<option>元素,怎么样才使其页面可调用不同的函数运行?急救!谢谢! 求救 PHPLIB 的简单问题 请教MYPHP 的CHAR字段 请问这是什么编码 请教一个字符串截取的for循环 php完整视频教程真的难找吗? 回答是:NO!!!!
正解,把:
while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){
echo $line["picture_id"];
if($i%2){
echo " <tr>";;
}
echo " <th height=\"2\" scope=\"row\">";
echo " <a href=\"admin_user_show_picture.php?picture_id=".$line["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> →票数统计结束为".$line_top["vote_num"]." </td>";
if($i%2==0){
echo " </tr>";
}
改为:
while($line_top = mysql_fetch_array($result_top, MYSQL_ASSOC)){
echo $line_top["picture_id"];
if($i%2){
echo " <tr>";;
}
echo " <th height=\"2\" scope=\"row\">";
echo " <a href=\"admin_user_show_picture.php?picture_id=".$line_top["picture_id"]."&auditing=1\"> <font color=\"red\">".$i.".".$line_top["picture_name"]." </font> </a> </th> <td> →票数统计结束为".$line_top["vote_num"]." </td>";
if($i%2==0){
echo " </tr>";
}