Error event: E_NOTICERun-time notification. An error may occur when the script runs normally. C: WWWweixinmembershopskin23.php error row: 8th error cause: Undefinedoffset: 1 source code: $ no1? & Quot; 1 & quot;: & quot; 0 & quot;, & quot; Title & quot; & gt; $ no1? Json_encode ($ Home_Json [$ no-1] [& #39; Title & #39;]): $ Home_Jso undefined offset 1php
Error event: E_NOTICE Run-time notification. An error may occur when the script runs normally.
C: \ WWW \ weixin \ member \ shop \ skin \ 23. incorrect number of php lines: 8th
Error cause: Undefined offset: 1
Source code:
$ Dwidth = array ('000000', '000000', '000000', '000000', '000000', '000000', '000000', '000000 ', '123', '123 ');
$ DHeight = array ('20140901', '63', '20160901', '20160901', '20170901', '63', '20160901 ', '63', '123 ');
$ Home_Json = json_decode ($ rsSkin ['home _ json'], true );
For ($ no = 1; $ no <= 10; $ no ++ ){
$ Json [$ no-1] = array (
"ContentsType" => $ no = 1? "1": "0 ",
"Title" => $ no = 1? Json_encode ($ Home_Json [$ no-1] ['title']): $ Home_Json [$ no-1] ['title'],
"ImgPath" => $ no = 1? Json_encode ($ Home_Json [$ no-1] ['imgpath']): $ Home_Json [$ no-1] ['imgpath'],
"Url" => $ no = 1? Json_encode ($ Home_Json [$ no-1] ['URL']): $ Home_Json [$ no-1] ['URL'],
"Postion" => $ no> 9? "T". $ no: "t0". $ no,
"Width" => $ Dwidth [$ no-1],
"Height" => $ DHeight [$ no-1],
"NeedLink" => "1"
);
}
I don't know how to solve this problem .... Help