Log in

View Full Version : Tutorial Script Problem



JoeComins
28-07-2006, 10:07 PM
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?

Evasion
29-07-2006, 12:08 AM
Make sure that's the right password. I can't see anything wrong with it.

The Voice
30-07-2006, 11:35 AM
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*

Want to hide these adverts? Register an account for free!