Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    UK
    Posts
    274
    Tokens
    719

    Default PHP Code MYSQL Code

    I have some PHP code where i need it so it will redirect them to the homepage if the accounttype is standard.

    I have the code but it dont seem to be redirecting them.



  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    mysql_fetch_row returns a numerical array and you're trying to use it as an associative array. Either use $row[1] == 'standard' or change mysql_fetch_row to mysql_fetch_assoc

  3. #3
    Join Date
    Aug 2009
    Location
    UK
    Posts
    274
    Tokens
    719

    Default

    So like

    $row = mysql_fetch_assoc($result);

  4. #4
    Join Date
    Aug 2009
    Location
    UK
    Posts
    274
    Tokens
    719

    Default

    For some reason it still lets me on the page even though my account is standard

Posting Permissions

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