Hi i am very new to php and finally late last night got it running. I am trying to install a web based forum on my web page and every time i run a php file on my web server i get this error.
install.php: parse error, expecting `'('' on line 3
require "config.php";
Here are the first few lines from the install.php file.
<?
require (config.php);
mysql_connect($dbhost, $dbuser, $dbpw) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());
$tables = array('announce','banned','forums', 'members', 'posts', 'ranks', 'smilies', 'themes', 'threads', 'u2u
', 'whosonline', 'words');
foreach($tables as $name) {
${'table_'.$name} = $tablepre.$name;
}
Any help would be greatly appreciated.
Thanks,
Rob Kobiske