$query11 = "select * from linkat_link where emailuser='$email2' or linkname='$domain_name2' ";
$result11 = mysql_query("$query11");
while($addrow11=mysql_fetch_row($result11)){
$dyoon=$dyoon + $addrow11["12"];
}
echo "$dyoon";
我将服务器升级到php 5.4后出现问题
以前版本中的这个收集号码
示例: 在行
$addrow11["12"] = 12
$addrow11["12"] = 23
$dyoon = 35
答案 0 :(得分:0)
也许试试
echo $dyoon;
而不是
echo "$dyoon";
像朗加德在他/她的评论中所说的那样
在while循环
之前设置$ dyoon$dyoon = 0;
while($addrow11=mysql_fetch_row($result11)){
$dyoon=$dyoon + $addrow11["12"];
}
echo $dyoon;