[請益] 請問這幾句錯誤的意思還有怎摸解決 謝謝

看板PHP作者 (qqq)時間16年前 (2007/10/22 14:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 599 Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 600 Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 601 Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\AppServ\www\sales\kevin\manager\templates\default\table.php on line 602 .....一直到609 --------------------------------------------------------------------- 程式碼部分 tables.php function tbl_accessctrl_lang($realarr,$lang) { 599 if ( in_array('site', $realarr )){$chk1=' checked ';} 600 if ( in_array('access', $realarr )){$chk2=' checked ';} 601 if ( in_array('intro', $realarr )){$chk3=' checked ';} 602 if ( in_array('product', $realarr )){$chk4=' checked ';} 603 if ( in_array('news', $realarr )){$chk5=' checked ';} 604 if ( in_array('faq', $realarr )){$chk6=' checked ';} 605 if ( in_array('inquire', $realarr )){$chk7=' checked ';} 606 if ( in_array('member', $realarr )){$chk8=' checked ';} 607 if ( in_array('file', $realarr )){$chk9=' checked ';} 608 if ( in_array('newsletter', $realarr )){$chk10=' checked ';} 609 if ( in_array('log', $realarr )){$chk11=' checked ';} echo " <tr><td colspan=\"2\">\n"; echo " <div style=\"cursor: pointer;\" onclick=\"select_limit_all('".$lang."');\"><b>"._SELECT_ALL."</b></div>\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"site\" $chk1>&nbsp;"._FUNC_site."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"access\" $chk2>&nbsp;"._FUNC_access."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"intro\" $chk3>&nbsp;"._FUNC_intro."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"product\" $chk4>&nbsp;"._FUNC_product."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"news\" $chk5>&nbsp;"._FUNC_news."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"faq\" $chk6>&nbsp;"._FUNC_faq."&nbsp;&nbsp;<br>\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"inquire\" $chk7>&nbsp;"._FUNC_inquire."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"member\" $chk8>&nbsp;"._FUNC_member."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"file\" $chk9>&nbsp;"._FUNC_file."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"newsletter\" $chk10>&nbsp;"._FUNC_newsletter."&nbsp;&nbsp;\n"; echo " <input class=\"textbg\" type=\"checkbox\" name=\"".$lang."Limit[]\" value=\"log\" $chk11>&nbsp;"._FUNC_log."&nbsp;&nbsp;\n"; echo " </td></tr>\n"; } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.165.101.17
文章代碼(AID): #1774ePkb (PHP)
討論串 (同標題文章)
文章代碼(AID): #1774ePkb (PHP)