Undefinedoffset: 1

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.