1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Admin username and password issue

Discussion in 'MySQL' started by neweraprime, Aug 28, 2011.

  1. #1
    I am working on a dynamic site....on the admin.php page when i enter the username and password...it goes to admin_fail.php.....it should go to admin_home.php.........i can't understand the error......kindly help me....files are attached alongwith
     

    Attached Files:

    neweraprime, Aug 28, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    if (isset($_SESSION['PrevUrl']) && false) {
    PHP:
    is always going to evaluate to false (it's saying "if something and if false is true"), so you're always going to execute
    header("Location: ". $MM_redirectLoginFailed );
    PHP:
     
    Rukbat, Aug 31, 2011 IP
  3. HalvinCarris

    HalvinCarris Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did you code this yourself? Or did you buy it from somewhere?
     
    HalvinCarris, Sep 3, 2011 IP
  4. vuna

    vuna Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you're a great coder man!
     
    vuna, Oct 20, 2011 IP