hulp nodig

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Hey,

      Ben al aantal uur bezig maar kom er niet uit.

      Als dan paar mensen in de gevangenis zit klik je op buyout ofzo maar dan pakt die altijd de onderste in de gevangenis en niet de gene die je aanklikt.....
      Kom er niet meer uit hopelijk kan iemand zien wat er fout gaat.

      PHP Source Code

      1. <form method="post">
      2. <table width="100%">
      3. <tr>
      4. <td class="mainTxt" width="25%"><input type="hidden" name="id" value="<?=$man->id?>">
      5. <input type="hidden" name="borg" value="<?=$borg?>"><a href="/ingame/profile.php?x=<?=$man->login?>"><?=$man->login?></a></td>
      6. <td class="mainTxt" width="25%"><?php if ($man->clan!="(-)"){?> <a href="/ingame/clan/clan.php?x=<?=$man->clan?>"><?=$man->clan?></a><?php }else{?><?=$man->clan?><?php }?></td>
      7. <td class="mainTxt" width="25%"><?=timeInterval(time(),$tijd);?></td>
      8. <td class="mainTxt" width="25%" id="Gevangenis_<?=$man->id?>">$<?=$borg?></a></td>
      9. <td class="mainTxt" width="25%" id="Gevangenis_<?=$man->id?>">$<?=$man->uitbreek?></a></td>
      10. <td class="mainTxt" width="25%"><?php if ($man->login != $data->login ) {if($tijd2>0){?> X <?php } else if($tijd2 <= 0){ ?> <input type="submit" value="Breakout" name="BU"><?php }}else { ?> - <?php }?></td>
      11. <td class="mainTxt" width="25%"><input type="submit" value="Buyout" name="KO"</td>
      12. </tr>
      13. </form>
      Display All




      Source Code

      1. if(isset($_POST['KO'])) {
      2. $id = $_POST['id'];
      3. $man1 = mysql_query("SELECT *,UNIX_TIMESTAMP(`gevangenis`) AS `gevangenis`,0 FROM `[users]` WHERE `id`='$id'");
      4. $man = mysql_fetch_object($man1);
      5. $borg = $_POST['borg'];

      Source Code

      1. if(isset($_POST['BU'])) {
      2. $id = $_POST['id'];
      3. $man1 = mysql_query("SELECT *,UNIX_TIMESTAMP(`gevangenis`) AS `gevangenis`,0 FROM `[users]` WHERE `id`='$id'");
      4. $man = mysql_fetch_object($man1);

      The post was edited 1 time, last by tkzone ().