So obviously once they've first begun the feature they get sent to a new page where they can invite another player...however at the moment when they go and do other things and try to come back to the page it puts them at the first page again and therefore have to repay etc...
here's what I've got so far:
<?
$user ="SELECT username, id FROM login WHERE id= '".$_SESSION["userid"]."'";
$result = mysql_query($user);
while ($row = mysql_fetch_assoc ($result)){
$username = $row['username'];
$heist="SELECT player1, player2 FROM heist WHERE player1 = '".$username."'";
$heistresult = mysql_query($heist);
while($rowi = mysql_fetch_array($heistresult)){
$player1 = $rowi['player1'];
$player2 = $rowi['player2'];
if ($player1 == $username){
if($player2 == ''){
header ('Location: heistinvite.php');
}else{ ?>
(You must be at least rank 2 to attempt a Heist)<br><br>
To perform a Getaway, you and your partner must be in the same state. You must use a stabled animal of your choice as well as your partner purchasing extra equipment.
It will cost you $5,000 to start a Getaway. Please be advised that once started you will not be able to cancel unless you wish to lose your deposit.<br><br>
<form action="startheist.php" method="post">
<input type="submit" value="Begin Heist">
<? }}}} ?>

New Topic/Question
Reply




MultiQuote






|