I am expanding my skills by trying to learn php and mysql. I built the mysql db meetings and a php page. Playing with this for a couple hours I went from a blank page to getting my html and the php error message: "Unable to select database" at least to show up.
Can anyone help me find the error?
<?php
$username="me";
$password="*****";
$database="me-meetingSchedual";
mysql_connect(loccalhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query=("SELECT * FROM meetings");
$result=mysql_query($query);
?>
Thank you for any help.
Can anyone help me find the error?
<?php
$username="me";
$password="*****";
$database="me-meetingSchedual";
mysql_connect(loccalhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query=("SELECT * FROM meetings");
$result=mysql_query($query);
?>
Thank you for any help.