PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    Admin link access violation

    Share
    avatar
    elvin66

    Number of posts : 24
    Registration date : 2009-03-13

    Admin link access violation

    Post  elvin66 on Fri Mar 13, 2009 6:56 pm

    Hi there

    I'm really happy to find this forum to continue Jtmasters great work. I have the script running but when I login as 'admin' and click on the '[Admin Center]' link I get this error....

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'your_name'@'localhost' (using password: YES) in /home/elepho5/public_html/login/include/database.php on line 24
    Access denied for user 'your_name'@'localhost' (using password: YES)

    I have registered various different Admin accounts and checked mysql database to make sure they are in there with level 9. Does anyone know what this means ???
    avatar
    Fred-Eric

    Number of posts : 63
    Registration date : 2007-05-13

    Re: Admin link access violation

    Post  Fred-Eric on Sat Mar 14, 2009 10:15 am

    Did you move the constants.php file because this error means that you connot connect to the database using 'your_name'@'localhost' so check if your DB_NAME, DB_SERVER, DB_PASS or are set correctly in the constant.php file and also check the database.php file on line 24...


    _________________
    Appologize for my bad english, I am speaking french.
    ------------------------------------
    Visit my blog: How To Make a Login System for Your Website
    avatar
    elvin66

    Number of posts : 24
    Registration date : 2009-03-13

    Re: Admin link access violation

    Post  elvin66 on Sun Mar 15, 2009 11:10 pm

    Fred-Eric wrote:Did you move the constants.php file because this error means that you connot connect to the database using 'your_name'@'localhost' so check if your DB_NAME, DB_SERVER, DB_PASS or are set correctly in the constant.php file and also check the database.php file on line 24...

    You're a genious. Thank you ! My mistake was thinking that because 'database.php' had the line 'include("constants.php");' and in constants.php the variables have already been set with my login details and database name etc... that I would not need to change line 24 in database.php to my exact details for connection. This prooves me wrong but I don't understand why it happened.

    Sponsored content

    Re: Admin link access violation

    Post  Sponsored content


      Current date/time is Mon Nov 20, 2017 9:28 am