Hi everyone,
Here's my newbie issue:
in phpmyadmin i created the following database:
user: firebox_firebox
pass: my pass
database: firebox_manual
table: blog
after skimming through a dummies book, i wrote this code:
<?php
$host="localhost";
$user="firebox_firebox";
$password="MYPASSWORD";
$database="firebox_manual";
$connection=mysql_pconnect ($host,$user,$password) or die ("couldn't connect to server");
$db=mysql_select_db ($database,$connection) or die ("can't connect to database");
and that's where i'll stop, because that's where the script chokes....
browser returns string "can't connect to database"....
i've tried a number of variations of this string, to no effect:
$database,$connection
$database
"firebox_manual", $connection
"firebox_manual"
i checked in phpmyadmin to make sure i had everything named correctly, and the database/user/password/table is all correct....
this is making my brain hurt, and i've only just started : (
EDIT: for all you fellow newbies out there, remember when you're creating your mysql databases that a username has to be attached to a database.... otherwise mysql has no idea that your user is supposed to have access.... in my case, it resulted in me being able to connect to the server, but not to the specific database, because my user/pass was rejected.