Jump to content
MakeWebGames

Recommended Posts

Posted

Re: battle ladder

Open attack.php

find:

What do you want to do with {$odata['username']} now?

<form action='attackwon.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Mug Them' /></form>

<form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Hospitalize Them' /></form>

<form action='attacktake.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Leave Them' /></form>";

replace with:

What do you want to do with {$odata['username']} now?

<form action='attackwon.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Mug Them' /></form>

<form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Hospitalize Them' /></form>

<form action='attacktake.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Leave Them' /></form>";

}

$dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid");

$you=$db->fetch_row($dert);

$dert=$db->query("SELECT * FROM ladder WHERE ladderID={$odata['userid']}");

$them=$db->fetch_row($dert);

if($you && $them)

{

print"<form action='attackladder.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Ladder Attack Them' /></form>";

}

 

query:

-- --------------------------------------------------------

--

-- Table structure for table `ladder`

--

CREATE TABLE `ladder` (

`ladderID` int(11) NOT NULL default '0',

`ladderRANK` int(11) NOT NULL default '0',

KEY `ladderRANK` (`ladderRANK`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--

-- Dumping data for table `ladder`

--

-- --------------------------------------------------------

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