PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
mattmcb
Forum Commoner
Posts: 27 Joined: Sun Jan 25, 2004 3:34 pm
Post
by mattmcb » Tue Jun 22, 2004 12:02 am
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?
kettle_drum
DevNet Resident
Posts: 1150 Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England
Post
by kettle_drum » Tue Jun 22, 2004 12:05 am
When you get weird errors aways check the line before :p
You missing a ";" from the previous statement - $mode = $_GET['mode']
Illusionist
Forum Regular
Posts: 903 Joined: Mon Jan 12, 2004 9:32 pm
Post
by Illusionist » Tue Jun 22, 2004 12:06 am
Your missing a ;
EDIT: late again!