Page 1 of 1

PHP Parse Error

Posted: Tue Jun 22, 2004 12:02 am
by mattmcb
This makes no sense... any ideas on why I would be receiving this error:
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");
}
?>
Why ca't it just work the first time?

Posted: Tue Jun 22, 2004 12:05 am
by kettle_drum
When you get weird errors aways check the line before :p

You missing a ";" from the previous statement - $mode = $_GET['mode']

Posted: Tue Jun 22, 2004 12:06 am
by Illusionist

Code: Select all

$mode = $_GET['mode']
Your missing a ;

EDIT: late again!