Posted: Wed Jul 26, 2006 4:19 pm
ok i have tried a third name and this seems to work
from Everah's test code he gave me:
i get back
We are in!
We have a DB too!
Error connecting to mysql
from Everah's test code he gave me:
Code: Select all
<?php
$dbhost = 'localhost';
$dbuser = 'name';
$dbpass = 'password';
if (!$dbc = mysql_connect($dbhost, $dbuser, $dbpass))
{
die('Could not establish a connection: ' . mysql_error());
}
else
{
echo '<p>We are in!</p>';
}
$dbname = 'mechacol_UEL';
if (!mysql_select_db($dbname))
{
die('Could not get the database: ' . mysql_error());
}
else
{
echo '<p>We have a DB too!</p>';
}
?>i get back
We are in!
We have a DB too!
Error connecting to mysql