Jump to content

[SOLVED] PHP, club error


eaglelegend

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.