I was pulling my hair out all day on this ... found it ... $Connection vs $connection. Amazing how well it works without typos.
Thanks everyone, John Almostgem --- In php-list@yahoogroups.com, "John" <[EMAIL PROTECTED]> wrote: > > > db_test.php > > <?php > include('db_logon.php'); > echo "$db_host, $db_user, $db_password<br />"; > > $Connection = mysql_connect($db_host,$db_user,$db_password); > if(!$connection){ > die("Could not connect to database: <br />".mysql_error()); > } > echo "Connected !"; > $db_select=mysql_selectdb($db_database); > if(!db_select) { > die("Could not select the database: <br />".mysql_error()); > } > ?> > > ____________________________________________________________________ > > URL: http://localhost/LearningPHP-MySQL/dbtest.php > > REsults : > > Variables loaded: > localhost, midnight, cgu11b1rd > Could not connect to database: > > Thanks all ! > > John > Almostgem >