数据库遍历问题,帮忙看看 把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);?> 如何删除目录下的所有文件(保留最上阶目录) php什么地方用的上数据结构和算法? jquery post传值乱码?????? 我的3年PHP生涯 模板中使用li对象选中值 菜鸟请教-读取*.ini文件方法 探讨:如何跟踪用户操作,象CSDN一样 fwrite的问题。 关于apache反向代理的问题 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);
?>