DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'Database Name');
DEFINE ('DB_USER', 'Database user');
DEFINE ('DB_PASSWORD', 'Databse Password');
// Make the connnection and then select the database.
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'changed_changed'');// I canged this to my db name right??
DEFINE ('DB_USER', 'myaccount');//changed
DEFINE ('DB_PASSWORD', 'password123');//changed
// Make the connnection and then select the database.
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
Error selecting db, i posted what i changed.. Im so close now thanks but im still getting that error...oh and i did make the usernam and password and gave all priviages..
Code:DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'changed_changed'');// I canged this to my db name right?? DEFINE ('DB_USER', 'myaccount');//changed DEFINE ('DB_PASSWORD', 'password123');//changed // Make the connnection and then select the database. $dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() ); mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
thats how i have it set up i think, or do i need to put cpanel, i can post my actual code but i just dont want other people to be able to see it like right now it is kimacc_phpacadamy. or should it be kimacckimacc_phpacadamy???
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'kimacc_kimacc_phpacadamy');
DEFINE ('DB_USER', 'kimacc');
DEFINE ('DB_PASSWORD', 'brianna123');
// Make the connnection and then select the database.
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'kimacc_phpacadamy');
DEFINE ('DB_USER', 'kimacc_kimacc');
DEFINE ('DB_PASSWORD', 'brianna123');
// Make the connnection and then select the database.
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
i have it just like you have it now and im getting this "Error selecting db"
it is totally working now, i dont understand that, thanks a million man you where great and thanks for not getting frustrated with me... I took the @ out before i redid everythang and it was still the same but i left it out with the new and it worked....