Hi,
Apologies if this sounds dumb but I'm very new to this.
I'm just trying to create a simple login page (
http://aarkenuk.co.uk/barnesg/login.php) In my MySQL databases I have the
correct database selected, but it's the users I'm struggling with. You get
like a front end with my hosting space (CpanelX) and in there I've created
user "admin" password "admin" but I cannot seem to login.
This is what I see in the front end..
Users in test
barnes_admin (Privileges: ALL PRIVILEGES)
Connection Strings
Perl $dbh =
DBI->connect("DBI:m ysql:barnes_tes t:localhost","b arnes_admin","< PASSWORD
HERE>");
PHP $dbh=mysql_conn ect ("localhost" , "barnes_adm in", "<PASSWORD
HERE>") or die ('I cannot connect to the database because: ' .
mysql_error());
mysql_select_db ("barnes_test") ;
Is there anything more I need to do? Do you login with barnes_admin or just
admin? (I've tried both) and why does it created barnes_admin and not just
admin? Also what are the connection strings for? do I need to do anything
with these?
Thanks very much in advance for any advice..
Gary
Apologies if this sounds dumb but I'm very new to this.
I'm just trying to create a simple login page (
http://aarkenuk.co.uk/barnesg/login.php) In my MySQL databases I have the
correct database selected, but it's the users I'm struggling with. You get
like a front end with my hosting space (CpanelX) and in there I've created
user "admin" password "admin" but I cannot seem to login.
This is what I see in the front end..
Users in test
barnes_admin (Privileges: ALL PRIVILEGES)
Connection Strings
Perl $dbh =
DBI->connect("DBI:m ysql:barnes_tes t:localhost","b arnes_admin","< PASSWORD
HERE>");
PHP $dbh=mysql_conn ect ("localhost" , "barnes_adm in", "<PASSWORD
HERE>") or die ('I cannot connect to the database because: ' .
mysql_error());
mysql_select_db ("barnes_test") ;
Is there anything more I need to do? Do you login with barnes_admin or just
admin? (I've tried both) and why does it created barnes_admin and not just
admin? Also what are the connection strings for? do I need to do anything
with these?
Thanks very much in advance for any advice..
Gary