ptrcklgrs
04-14-2006, 10:38 PM
Ok i have used xampp to set up a database and a table on my http://localhost using phpmyadmin and i have all programs running fine then i open up a PHP file using dreamweaver and enter the code.
$username="username";
$password="password";
$database="dtest";
then it says to use this command to get started but when i do it gives me an error messege
mysql_connect(localhost,$username,$password);
my database is called dtest and my table is called ttest and im not sure what is my username or password because i never "set one up" also my localhost is the htdocs default folder that xampp uses. How do i get connected because i think thats where my problem is. If you need additional info PLEASE LET ME KNOW and i will tell you whatever you need to help me.
Thank you for even taking the time to read this.
$username="username";
$password="password";
$database="dtest";
then it says to use this command to get started but when i do it gives me an error messege
mysql_connect(localhost,$username,$password);
my database is called dtest and my table is called ttest and im not sure what is my username or password because i never "set one up" also my localhost is the htdocs default folder that xampp uses. How do i get connected because i think thats where my problem is. If you need additional info PLEASE LET ME KNOW and i will tell you whatever you need to help me.
Thank you for even taking the time to read this.