Results 1 to 2 of 2

Thread: Cannot use string offset as an array

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    7

    Cannot use string offset as an array

    Whenever I run this code:

    PHP Code:
    if (($_GET["premium_acc"] == "on" && $_GET["premium_user"] && $_GET["premium_pass"]) || ($_GET["premium_acc"] == "on" && $premium_acc["rs_com"]["user"] && $premium_acc["rs_com"]["pass"])) 
    I get the error:

    Fatal error: Cannot use string offset as an array in com.php on line 8

    Is there anything wrong in the code?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Cannot use string offset as an array

    What is $premium_acc?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width