数据库遍历问题,帮忙看看 把while(list($photoname) = mysql_fetch_array($Rst))这一句改成while(list($photoname) = each(mysql_fetch_array($Rst)))试一下。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 总数为:10587Warning: Variable passed to each() is not an array or object in /www/users/focusforever.com/edit.php on line 10已更新记录:不能执行 循环内的update破坏了循环外的select的结果,你可以这样<?include("inc/global.inc");$Server = Get_Mysql_Server();$Str = "update new_photo set photoname=CONCAT('s_0',SUBSTRING(photoname,SUBSTRING_INDEX(photoname,"_",-1),1),'<br>') where photoname=4";$Rst = mysql_query($Str) or die(mysql_error()."<br>".$Str);?> sql实现调用最新5个列表缩略图求助。。 关于PHP排行榜的趋势的问题(请教高手!) php如何打印数据库里面所有数据? 如何在Windows2003架设PHP服务器? 我写的上传图片的程序出了问题 上传不上去! 昨天的问题没得到解决,今天继续,郁闷,高手进来看看!!! 各位推荐一本PHP的好书 为什么查询语句代码直接显示出来了 怎样让服务器支持mail函数? 如何用php程序实现数据的导入和导出,即实现数据备份和恢复功能 使用模板的发展动向! 简单问题也让我郁闷呀!help me!!!!!
已更新记录:不能执行
<?
include("inc/global.inc");
$Server = Get_Mysql_Server();$Str = "update new_photo set photoname=CONCAT('s_0',SUBSTRING(photoname,SUBSTRING_INDEX(photoname,"_",-1),1),'<br>') where photoname=4";
$Rst = mysql_query($Str) or die(mysql_error()."<br>".$Str);
?>