When trying to run the below script on an apache/1.3.26 with mysql and
php I get the following error message:
Warning: mysql_connect() [function.mysql-connect]: Access denied for
user: 'n*****@software-ece.rutgers.edu' (Using password: YES) in
/ece/under/group14/public_html/insert.php on line 7
Unable to Select database
I have no idea what the cause is, any help would be appreciated.
Thanks in advance.
<?
$username = "group29";
$password = "xxxxxx";
$database = "group29";
mysql_connect('software-ece.rutgers.edu:3306',$user,$password);
@mysql_select_db($database) or die("Unable to Select database");
$query="CREATE TABLE contacts(id int(6) NOT NULL auto increment, first
varchar(15) NOT
NULL, last varchar(15) NOT NULL, phone varchar(30) NOT NULL, mobile
varchar(20) NOT NULL,
fax varchar(20) NOT NULL, email varchar(30) NOT NULL, web varchar(30)
NOT NULL,
PRIMARY KEY(id), UNIQUE id(id), KEY id_2(id))";
mysql_query($query);
mysql_close();
?>