The error I get is:
Parse error: parse error, unexpected T_STRING in /home/content/k/k/b/kkbroughton/html/opendb.php on line 6
Below is the code.
<?php
//
// This file is to be used in conjunction with dbconfig.php to connect to, and select a db for use.
//
//
$conn = mysql connect($dbhost, $dbuser, $dbpass) or die
('Error connecting to mysql');
mysql_select_db($dbname);
?>
Does anyone see what I did wrong? I copy pasted most of the code as I'm completely new to PHP.
I'm getting a parse error on every file I have uploaded but two (All have errors:
Parse error: parse error, unexpected T_STRING in /home/content/k/k/b/kkbroughton/html/opendb.php on line 6
Below is the code.
<?php
//
// This file is to be used in conjunction with dbconfig.php to connect to, and select a db for use.
//
//
$conn = mysql connect($dbhost, $dbuser, $dbpass) or die
('Error connecting to mysql');
mysql_select_db($dbname);
?>
Does anyone see what I did wrong? I copy pasted most of the code as I'm completely new to PHP.
I'm getting a parse error on every file I have uploaded but two (All have errors: