eaglelegend Posted November 3, 2008 Share Posted November 3, 2008 Hi, I & other users are getting this parse error when joining a club; Parse error: syntax error, unexpected T_PRIVATE, expecting ']' in /home/webredev/public_html/eaglelegend/club_join.pro.php on line 14 this is the code; <?php /* Join club (club_join.pro.php) */ ob_start(); $rank_check = 1; include "global.inc.php"; $clubrank_check = 0; include "club.inc.php"; if ($getclub[private] == 1) { die(header(error("club.php?game=$game&clubid=$clubid","You can't join a private club."))); } if ($clubrank > 0) { die(header(error("club.php?game=$game&clubid=$clubid","You are already a member of this club."))); } if ($getmemberdata4[id]) { die(header(error("club.php?game=$game&clubid=$clubid","You are already a member of a club."))); } mysql_query("UPDATE clubs2 SET members = '$getclub[members]+1' WHERE id = '$clubid' AND game = '$game'"); mysql_query("INSERT INTO club_members2 (club,user,position,game) VALUES ('$clubid','$userid','1','$game')"); header(error("club.php?game=$game&clubid=$clubid","Thank you for joining $getclub[name].")); ?> Link to comment https://forums.phpfreaks.com/topic/131227-solved-php-club-error/ Share on other sites More sharing options...
F1Fan Posted November 3, 2008 Share Posted November 3, 2008 $getclub[private] should really be $getclub['private']. Link to comment https://forums.phpfreaks.com/topic/131227-solved-php-club-error/#findComment-681308 Share on other sites More sharing options...
eaglelegend Posted November 3, 2008 Author Share Posted November 3, 2008 $getclub[private] should really be $getclub['private']. OH I SEE!, thanks for that mate Link to comment https://forums.phpfreaks.com/topic/131227-solved-php-club-error/#findComment-681326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.