Hi, i am trying to connect to the data base "simple login" on the php admin section of my control panel. The php code is below
However, the following error message appears.
Access denied for user 'beernice'@'localhost' to database '_simple_login'
Do i need the port number, or is the code incorrect?
PHP:
<?php
mysql_connect("localhost", "beernice", "password") or die(mysql_error()) ;
mysql_select_db("_simple_login") or die(mysql_error()) ;
$name=$_POST['name'];
$email=$_POST['email'];
$address1=$_POST['address1'];
$country=$_POST['country'];
$username=$_POST['username'];
$password=$_POST['password'];
$password2=$_POST['password2'];
?>
However, the following error message appears.
Access denied for user 'beernice'@'localhost' to database '_simple_login'
Do i need the port number, or is the code incorrect?
Last edited by a moderator: