PHP Parse Error
Posted: Tue Jun 22, 2004 12:02 am
This makes no sense... any ideas on why I would be receiving this error:
Here is the code:
Why ca't it just work the first time?
Parse error: parse error, unexpected T_FUNCTION in c:\program files\apache group\apache\storegroup\sg_forum\joint_venture_admin.php on line 20
Here is the code:
Code: Select all
<?php
$linkid = @mysql_connect('localhost', 'seekide_si', '1million');
mysql_select_db('seekide_sgforum', $linkid);
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$mode = $_GET['mode']
/* MODES: create | edit | view | approve | print |Send */
// MODE: CREATE
function create_contract()
{
// Redirect to contract, CREATE MODE
redirect("http://www.storegroup.org/sg_forum/joint_venture_contract.php?mode=create");
}
?>