首页 > php这样写为什么没效果

php这样写为什么没效果

if ($next_id="") {
} else {
  echo '<button id="Load" next="'.$next_id.'"></button>';
}

$next_id的值是2时可以输出<button id="Load" next="2"></button>,
但是我想在最后一页什么也不输出,而这段代码在最后一页输出<button id="Load" next=""></button>
求哪里出错了


... Sorry , 是逻辑运算符的问题..


if ($next_id="") {

怎么能在if里赋值呢?


你在之前的页面还能正常输出?

if ( $next_id = "" )

赋值 = 号啊,大哥……

【热门文章】
【热门文章】