mooseman1888
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 0
I've spent hours on the forums trying to figure out how to connect successfully to my database.
The script I'm using is:
$con = mysql_connect("localhost","jasonw_****","****");
if(!$con)
{
die('Could not connect: ' .mysql_error());
}
mysql_select_db("Poll", $con);
I used MySQL Databases to give full privileges to jasonw_****, but I'm still getting the same "no database selected" error.
Thanks,
Jason
The script I'm using is:
$con = mysql_connect("localhost","jasonw_****","****");
if(!$con)
{
die('Could not connect: ' .mysql_error());
}
mysql_select_db("Poll", $con);
I used MySQL Databases to give full privileges to jasonw_****, but I'm still getting the same "no database selected" error.
Thanks,
Jason