Jump to content
MakeWebGames

Parse error:


thebobby

Recommended Posts

Parse error: syntax error, unexpected '<' in /home/mdsr/public_html/business_create.php on line 34

 

else if($user_class->money < $r['classCost'])

{

echo '<tr><td class="contentcontent">You cannot afford to start a business of this type right now.</tr></td>';

}

else if(mysql_num_rows($check) || mysql_num_rows($check_member))

{

echo '<tr><td class="contentcontent">You are part of a business at this time, close it to start a new one.</tr></td>';

}

else

{

line 32 mysql_query(sprintf("INSERT INTO `businesses` (busId, busName, busClass, busDirector)"." VALUES (NULL,'%s', '%d', '%u'),'".$_POST['name']."',abs((int) '".$_POST['class']."'", $user_class->id));

line34 mysql_query(sprintf("UPDATE `grpgusers` SET `money` = `money` - '%d', `business` = '".$_POST['class']."' WHERE `id` = '%u', '".$r['classCost']."'", $user_class->id));

echo <tr><td class="contentcontent">The '".$_POST['name']."' business was created.</td></tr>;

}

}

{

echo <tr><td class="contentcontent"><form action="business_create.php" method="post">

<p align="left">

<b>Create a new business:</b><br /><br />

Please enter a name for the new business below, then select

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...