Jump to content
MakeWebGames

Alliance


Recommended Posts

Ok, so my players will be selecting an alliance. Angels, Demons, or Self.

I need to know how to create the if statements.

ie. if alliance = angels show page_part 1, elseif alliance = demons show page_part 2, else show page_part 3.

Also, checking to see if exists. Similar to donator if donator = >0 but for db queries. As each side will vary upon their benefits.

Link to comment
Share on other sites

I'm working with the factions mod. fixed most errors. Now I'm on to the search function which is the last.

Here's the code

 

global $ir,$db,$c,$userid,$h;
if (!$_POST['name'])
{
print "<form action='factions.php?step=search' method='post'>
<b>Search by Keyword</b>


Insert the keyword that you'd like to search for Factions:

<input type='text' name='name'>


<input type='submit' value='Search'></form>
<hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>";
}

 

Parse error: syntax error, unexpected 'name' (T_STRING), expecting ']'

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...