Hi, I am very new (like a day old new) so please don't shout at for asking a stupid question or missing out a comma or a letter etc. (I am still getting to grips with it), when I try to tell PHP what database to use I get this error:
Parse error: parse error, unexpected T_VARIABLE in C:\FoxServ\www\phptesting\scripts\mysql_connect.php on line 7
this is the PHP:
<?php
//make a connection to the MySQL
$host = "localhost";
$user = "uname";
$pass = "password";
$connection = mysql_connect($host,$user,$pass) or die ("invalid connection");
$db = mysql_select_db("mydb",$connection) or die ("I could not connect to the database");
?>
thanks for any help you can give me it will greatly decrease my coffee intake!
Shinzon