skull Posted July 22, 2009 Posted July 22, 2009 attackladder.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
skull Posted July 22, 2009 Author Posted July 22, 2009 Re: battle ladder battleladder.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
skull Posted July 22, 2009 Author Posted July 22, 2009 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` -- -- -------------------------------------------------------- Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.