01-16-2010, 08:28 PM
Wamp's default setting for database user is, Username: root, Password: BLANK
You can access it over here http://localhost/phpmyadmin
There you will nt be asked for username and password....
When you use mysql_connect() on WAMP you would call it like this;
When you use this inside of index.php
The code will include a file with the name "settings.inc.php" from the same directory where your index.php file is...
If you place the file into a folder named "conf" the line would look like this.
You need to create a settings.inc.php file..!
You can access it over here http://localhost/phpmyadmin
There you will nt be asked for username and password....
When you use mysql_connect() on WAMP you would call it like this;
PHP Code:
$con = mysql_connect("localhost", "root", "") or die(mysql_error());
When you use this inside of index.php
Code:
include "settings.inc.php";
The code will include a file with the name "settings.inc.php" from the same directory where your index.php file is...
If you place the file into a folder named "conf" the line would look like this.
PHP Code:
include "conf/settings.inc.php";
You need to create a settings.inc.php file..!