why am I getting this parse error?
Posted: Tue Jul 12, 2005 10:34 pm
I get the following error:
Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/search/include/connect.php on line 7
here is the code
thanks for any hints...
Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/search/include/connect.php on line 7
here is the code
Code: Select all
<?php
$database="bruceg_search";
$mysql_user = "bruceg_webmaster";
$mysql_password = "password";
$mysql_host = "server-10.existhost.com";
$mysql_table_prefix = "";
$success = mysql_pconnect ($server-10.existhost.com, $bruceg_search, $password);
if (!$success)
die ("<b>Cannot connect to database, check if username, password and host are correct.</b>");
$success = mysql_select_db ($database);
if (!$success) {
print "<b>Cannot choose database, check if database name is correct.";
die();
}
?>