find error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    find error

    [code=PHP]$j=0;

    $pidarray[0]=array("1001");
    print_r($pidarr ay[j]);[/code]
    why it not print 1001
    Last edited by Atli; Oct 23 '08, 12:27 PM. Reason: Added [code] tags.
  • chelvan
    New Member
    • Aug 2008
    • 90

    #2
    hi
    you missed the $sign on your printing array index.
    Code:
    print_r($pidarray[$j]);
    now you will get the result.

    regards
    chel-1

    Comment

    • kkshansid
      New Member
      • Oct 2008
      • 232

      #3
      Originally posted by chelvan
      hi
      you missed the $sign on your printing array index.
      Code:
      print_r($pidarray[$j]);
      now you will get the result.

      regards
      chel-1
      thank u
      it really works

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        kkshansid.

        You have been asked twice before now to read the Posting Guidelines, and to use [code] tags when posting code examples.

        This time I am telling you; read the guidelines and follow them!
        If you do not and we are forced to remind you again your account will suffer a temporary ban, followed by a permanent ban.

        So please, read the guidelines before posting again.
        I suggest you start with the part about How to ask a question.

        If this is in any way unclear, feel free to contact me by PM.

        Thank you.
        Moderator

        Comment

        Working...