Results 1 to 3 of 3
  1. #1
    JoeComins Guest

    Default Tutorial Script Problem

    This is my TutsConfig.php

    <?php
    $username = "jctest_tut";
    $password = "tut1224";
    $host = "localhost";
    $database = "jctest_tut";

    $table = "tutorials";
    mysql_connect($host,$username,$password) or die("Error connecting to Database!
    " . mysql_error());
    mysql_select_db($database) or die("Cannot select database!
    " . mysql_error());
    ?>
    This is the error:
    Warning: mysql_connect(): Access denied for user 'jctest_tut'@'localhost' (using password: YES) in /home3/jctest/public_html/tutconfig.php on line 8
    Whats wrong?

    Also, can someone maybe help me make it?
    Last edited by JoeComins; 28-07-2006 at 10:08 PM.

  2. #2
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    550
    Tokens
    0

    Default

    Make sure that's the right password. I can't see anything wrong with it.

  3. #3
    Join Date
    Jun 2006
    Location
    Nottinghamshire
    Posts
    184
    Tokens
    0

    Default

    You know where it says _tuts at the end? Did you enter that for the database username on cPanel or whatever you used.

    And, at the end of mine, I have to put _*MY CPANEL/FTP ETC. USERNAME*

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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