sorry if i put too much stuff there. Just thought more information is better than being vague.
Oh so very true and no need to apologise as I wish more would do that when asking for assistance.
Refer to my link re how to do this, as most info is as you have posted so long as it matches those settings in phpMyAdmin for the users
- Code: Select all
$dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ
$dbname = "users"; // the name of the database that you are going to use for this project
$dbuser = "Ben"; // the username that you created, or were given, to access your database
$dbpass = ""; // the password that you created, or were given, to access your database
Missing is a $dbpass for Ben - no need to post it here if you feel it would be insecure as long as there is one.
Your script error is also telling you that there is no password.
I think if you follow my little tut, (even if you create another database, you can drop it when finished with the tut
), then you may see what this database creation and the requirements is all about - you seem to be very close now.
Someone with more php knowledge may be able to spot any issues with the rest of the code.