全球主机交流论坛

标题: 求救 有会php的吗 我dezend一段代码 报错了 [打印本页]

作者: toshow    时间: 2019-3-28 11:27
标题: 求救 有会php的吗 我dezend一段代码 报错了
有会php的吗  我dezend一段代码  
报错了  第75行
特来万能的hostloc求救

(, 下载次数: 1)


  1.     $newstemptext = getbookbq( $classid, $newstemp_r, $add, $index, $docheckrep );
  2.     $expage = "[!--empirenews.page--]";
  3.     $pf = $emod_r[$mid]['pagef'];
  4.     $newstempstr = $newstemptext;
  5.     if ( $pf && strstr( $add[$pf], $expage ) )
  6.     {
  7.         $n_r = explode( $expage, $add[$pf] );
  8.         $thispagenum = count( $n_r );
  9.         $thefun = $public_r['textpagefun'] ? $public_r['textpagefun'] : "sys_ShowTextPage";
  10.         if ( strstr( $newstemptext, "[!--title.select--]" ) )
  11.         {
  12.             $dotitleselect = sys_showtextpageselect( $thispagenum, $dolink, $add, $filetype, $n_r );
  13.         }
  14.         $j = 1;
  15.         for ( ; do
  16. {
  17. $j <= $thispagenum; ++$j, )
  18.             {
  19.                 $string = $newstempstr;
  20.                 $truepage = "";
  21.                 $titleselect = "";
复制代码


就是 for ( ; do这一行报错
作者: sotan    时间: 2019-3-28 11:30
我看不懂

  1. for (init counter; test counter; increment counter) {
  2.   code to be executed;
  3. }
  4. 参数:

  5. init counter:初始化循环计数器的值
  6. test counter:: 评估每个循环迭代。如果值为 TRUE,继续循环。如果它的值为 FALSE,循环结束。
  7. increment counter:增加循环计数器的值
复制代码

作者: yemingtu    时间: 2019-3-28 11:37
你这循环里面套循环?
作者: duyu    时间: 2019-3-28 12:35
我估计应该是
  1. for ($j=0;$j <= $thispagenum; ++$j )
  2.            
复制代码

作者: toshow    时间: 2019-3-28 12:41
谢谢各位  搞定啦




欢迎光临 全球主机交流论坛 (https://hostloc-workers.ikyomon.com/) Powered by Discuz! X3.4