Jump to content

Recommended Posts

ive made this page... but its not redirecting....

 

<?php
include("lib.php");
define("PAGENAME", "Bus Station");
$player = check_user($secret_key, $db);

$query = $db->execute("select `city_id` from `players` where `city_id`=1");
$query1 = $db->execute("select `city_id` from `players` where `city_id`=2");
$query2 = $db->execute("select `city_id` from `players` where `city_id`=3");
$query3 = $db->execute("select `city_id` from `players` where `city_id`=4");
$query4 = $db->execute("select `city_id` from `players` where `city_id`=5");
$query5 = $db->execute("select `city_id` from `players` where `city_id`=6");
$query6 = $db->execute("select `city_id` from `players` where `city_id`=7");
$query7 = $db->execute("select `city_id` from `players` where `city_id`=8");
$query8 = $db->execute("select `city_id` from `players` where `city_id`=9");
$query9 = $db->execute("select `city_id` from `players` where `city_id`=10");
$query10 = $db->execute("select `city_id` from `players` where `city_id`=11");
$query11 = $db->execute("select `city_id` from `players` where `city_id`=12");
$query12 = $db->execute("select `city_id` from `players` where `city_id`=13");
$query13 = $db->execute("select `city_id` from `players` where `city_id`=14");
$query14 = $db->execute("select `city_id` from `players` where `city_id`=15");
$query15 = $db->execute("select `city_id` from `players` where `city_id`=16");
$query16 = $db->execute("select `city_id` from `players` where `city_id`=17");
$query17 = $db->execute("select `city_id` from `players` where `city_id`=18");
$query18 = $db->execute("select `city_id` from `players` where `city_id`=19");
$query19 = $db->execute("select `city_id` from `players` where `city_id`=20");
$query20 = $db->execute("select `city_id` from `players` where `city_id`=21");
$query21 = $db->execute("select `city_id` from `players` where `city_id`=22");
$query22 = $db->execute("select `city_id` from `players` where `city_id`=23");
$query23 = $db->execute("select `city_id` from `players` where `city_id`=24");
$query24 = $db->execute("select `city_id` from `players` where `city_id`=25");
$query25 = $db->execute("select `city_id` from `players` where `city_id`=26");
$query26 = $db->execute("select `city_id` from `players` where `city_id`=27");
$query27 = $db->execute("select `city_id` from `players` where `city_id`=28");

$city1 = $query->recordcount();
$city2 = $query1->recordcount();
$city3 = $query2->recordcount();
$city4 = $query3->recordcount();
$city5 = $query4->recordcount();
$city6 = $query5->recordcount();
$city7 = $query6->recordcount();
$city8 = $query7->recordcount();
$city9 = $query8->recordcount();
$city10 = $query9->recordcount();
$city11 = $query10->recordcount();
$city12 = $query11->recordcount();
$city13 = $query12->recordcount();
$city14 = $query13->recordcount();
$city15 = $query14->recordcount();
$city16 = $query15->recordcount();
$city17 = $query16->recordcount();
$city18 = $query17->recordcount();
$city19 = $query18->recordcount();
$city20 = $query19->recordcount();
$city21 = $query20->recordcount();
$city22 = $query21->recordcount();
$city23 = $query22->recordcount();
$city24 = $query23->recordcount();
$city25 = $query24->recordcount();
$city26 = $query25->recordcount();
$city27 = $query26->recordcount();
$city28 = $query27->recordcount();

include("templates/private_header.php");
?>
<style type="text/css">
<!--
.style8 {
font-family: Arial;
color: #FFFFFF;
}
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
a:link {
color: #FF0000;
}
a:visited {
color: #FF0000;
}
a:hover {
color: #666666;
}
a:active {
color: #FF0000;
}
.style5 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>


<table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000">
  <tr>
    <td align="center" class="style5">Bus Station </td>
  </tr>
</table>
<table width="652" border="0">
  <tr>
    <td width="30"> </td>
    <td width="150" bgcolor="#000000"><em><strong>City</strong></em></td>
    <td width="150" bgcolor="#000000"><em><strong>Price</strong></em></td>
    <td width="150" bgcolor="#000000"><em><strong>Level</strong></em></td>
    <td width="150" bgcolor="#000000"><em><strong>Population</strong></em></td>
  </tr>
  <tr>
    <td> </td>
    <td bgcolor="#000000"><a href="busstation.php?travel=1">London</a></td>
    <td bgcolor="#000000">$1,000</td>
    <td bgcolor="#000000">1</td>
    <td bgcolor="#000000"><?=$city1?></td>
  </tr>
  <tr>
    <td> </td>
    <td bgcolor="#000000"><a href="busstation.php?travel=2">New York</a> </td>
    <td bgcolor="#000000">$1,000</td>
    <td bgcolor="#000000">1</td>
    <td bgcolor="#000000"><?=$city2?></td>
  </tr>
  <tr>
    <td> </td>
    <td bgcolor="#000000"><a href="busstation.php?travel=3">Birmingham</a></td>
    <td bgcolor="#000000">$1,000</td>
    <td bgcolor="#000000">1</td>
    <td bgcolor="#000000"><?=$city3?></td>
  </tr>
  <tr>
  <?php if ($player->level >= 5){
    echo "<td>&nbsp </td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=4\">Atlanta</a></td>";
    echo "<td bgcolor=\"#000000\">$3,000</td>";
    echo "<td bgcolor=\"#000000\">5</td>";
    echo "<td bgcolor=\"#000000\">$city4</td>";
    }
    ?>
  </tr>
  <tr>
  <?php if ($player->level >= 10){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=5\">Washington</a></td>";
    echo "<td bgcolor=\"#000000\">$6,000</td>";
    echo "<td bgcolor=\"#000000\">10</td>";
     echo "<td bgcolor=\"#000000\">$city5</td>";
    }
    ?>
  </tr>
  <tr>
  <?php if ($player->level >= 10){
    echo "<td> &nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=6\">Tokyo</a></td>";
    echo "<td bgcolor=\"#000000\">$6,000</td>";
    echo "<td bgcolor=\"#000000\">10</td>";
    echo "<td bgcolor=\"#000000\">$city6</td>";
    }
    ?>
  </tr>
  <tr>
  <?php if ($player->level >= 15){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=7\">Moscow</a></td>";
    echo "<td bgcolor=\"#000000\">$9,000</td>";
    echo "<td bgcolor=\"#000000\">15</td>";
    echo "<td bgcolor=\"#000000\">$city7</td>";
    }
    ?>
  </tr>
  <tr>
  <?php if ($player->level >= 20){
    echo "<td>&nbsp</td>";;
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=8\">Berlin</a></td>";
    echo "<td bgcolor=\"#000000\">$12,000</td>";
    echo "<td bgcolor=\"#000000\">20</td>";
    echo "<td bgcolor=\"#000000\">$city8</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 25){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=9\">Madrid</a></td>";
    echo "<td bgcolor=\"#000000\">$16,000</td>";
    echo "<td bgcolor=\"#000000\">25</td>";
    echo "<td bgcolor=\"#000000\">$city9</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 30){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=10\">Sydney</a></td>";
    echo "<td bgcolor=\"#000000\">$20,000</td>";
    echo "<td bgcolor=\"#000000\">30</td>";
    echo "<td bgcolor=\"#000000\">$city10</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 40){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=11\">Chicargo</a></td>";
    echo "<td bgcolor=\"#000000\">$22,500</td>";
    echo "<td bgcolor=\"#000000\">40</td>";
    echo "<td bgcolor=\"#000000\">$city11</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 45){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=12\">Singapore</a></td>";
    echo "<td bgcolor=\"#000000\">$24,500</td>";
    echo "<td bgcolor=\"#000000\">45</td>";
    echo "<td bgcolor=\"#000000\">$city12</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player-> level >= 50){
    echo "<td> </td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=13\">Mexico City</a></td>";
    echo "<td bgcolor=\"#000000\">$26,500</td>";
    echo "<td bgcolor=\"#000000\">50</td>";
    echo "<td bgcolor=\"#000000\">$city13</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if($player-> level >= 60){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=14\">Phoenix</a></td>";
    echo "<td bgcolor=\"#000000\">$30,000</td>";
    echo "<td bgcolor=\"#000000\">60</td>";
    echo "<td bgcolor=\"#000000\">$city14</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if($player-> level >= 70){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=15\">Amsterdam</a></td>";
    echo "<td bgcolor=\"#000000\">$39,000</td>";
    echo "<td bgcolor=\"#000000\">70</td>";
    echo "<td bgcolor=\"#000000\">$city15</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if($player->level >= 85){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=16\">Oslo</a></td>";
    echo "<td bgcolor=\"#000000\">$46,000</td>";
    echo "<td bgcolor=\"#000000\">85</td>";
    echo "<td bgcolor=\"#000000\">$city16</td>";
    }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 100){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=17\">Boston</a></td>";
    echo "<td bgcolor=\"#000000\">$55,000</td>";
    echo "<td bgcolor=\"#000000\">100</td>";
    echo "<td bgcolor=\"#000000\">$city17</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 110){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=18\">Hong Kong</a></td>";
    echo "<td bgcolor=\"#000000\">$59,000</td>";
    echo "<td bgcolor=\"#000000\">110</td>";
    echo "<td bgcolor=\"#000000\">$city18</td>";
  }
  ?>
  </tr>
  <tr>
  <? if ($player->level >= 125){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=19\">Las Vegas</a></td>";
    echo "<td bgcolor=\"#000000\">$63,000</td>";
    echo "<td bgcolor=\"#000000\">125</td>";
    echo "<td bgcolor=\"#000000\">$city19</td>";
  }
  ?>
  </tr>
  <tr>
  <? if ($player->level >= 150){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=20\">Austin</a></td>";
    echo "<td bgcolor=\"#000000\">$68,000</td>";
    echo "<td bgcolor=\"#000000\">150</td>";
    echo "<td bgcolor=\"#000000\">$city20</td>";
  }
  ?>
  </tr>
  <tr>
  <? if ($player->level >= 200){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=21\">Miami</a></td>";
    echo "<td bgcolor=\"#000000\">$73,000</td>";
    echo "<td bgcolor=\"#000000\">200</td>";
    echo "<td bgcolor=\"#000000\">$city21</td>";
  }
  ?>
  </tr>
  <tr>
  <? if ($player->level >= 250){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=22\">Dublin</a></td>";
    echo "<td bgcolor=\"#000000\">$78,000</td>";
    echo "<td bgcolor=\"#000000\">250</td>";
    echo "<td bgcolor=\"#000000\">$city22</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 300){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=23\">Oakland</a></td>";
    echo "<td bgcolor=\"#000000\">$83,000</td>";
    echo "<td bgcolor=\"#000000\">300</td>";
    echo "<td bgcolor=\"#000000\">$city23</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 350){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=24\">Milan</a></td>";
    echo "<td bgcolor=\"#000000\">$84,000</td>";
    echo "<td bgcolor=\"#000000\">350</td>";
    echo "<td bgcolor=\"#000000\">$city24</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 400){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=25\">Istanbul</a></td>";
    echo "<td bgcolor=\"#000000\">$85,000</td>";
    echo "<td bgcolor=\"#000000\">400</td>";
    echo "<td bgcolor=\"#000000\">$city25</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 450){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=26\">Toronto</a></td>";
    echo "<td bgcolor=\"#000000\">$86,000</td>";
    echo "<td bgcolor=\"#000000\">450</td>";
    echo "<td bgcolor=\"#000000\">$city26</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->level >= 500){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=27\">Rome</a></td>";
    echo "<td bgcolor=\"#000000\">$90,000</td>";
    echo "<td bgcolor=\"#000000\">500</td>";
    echo "<td bgcolor=\"#000000\">$city27</td>";
  }
  ?>
  </tr>
  <tr>
  <?php if ($player->staff >= 1){
    echo "<td>&nbsp</td>";
    echo "<td bgcolor=\"#000000\"><a href=\"busstation.php?travel=28\">Area 51</a></td>";
    echo "<td bgcolor=\"#000000\"</td>";
    echo "<td bgcolor=\"#000000\">STAFF ONLY</td>";
    echo "<td bgcolor=\"#000000\"></td>";
  }
  ?>
</table>
<p class="style8">

<?
$travel = $_GET['travel'];
if($travel) {
if($travel == 1) {
//TRAVEL 1.
if($player->money < 1000 || $player->city_id == 1 || $player->level < 1) {
     header("location: home.php");
}
else {
header("location: london.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=1 where `id`=?", array($player->money - 1000, $player->id ));

}
}

if($travel == 2) {
//TRAVEL 2.
if($player->money < 1000 || $player->city_id == 2 || $player->level < 1) {
     header("location: home.php");
}
else {
header("location: newyork.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=2 where `id`=?", array($player->money - 1000, $player->id ));
}
}


if($travel == 3) {
//TRAVEL 3.
if($player->money < 1000 || $player->city_id == 3 || $player->level < 1) {
     header("location: home.php");
}
else {
header("location: birmingham.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=3 where `id`=?", array($player->money - 1000, $player->id ));
}
}


if($travel == 4) {
//TRAVEL 4.
if($player->money < 3000 || $player->city_id == 4 || $player->level < 5) {
     header("location: home.php");
}
else {
header("location: atlanta.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=4 where `id`=?", array($player->money - 3000, $player->id ));
}
}


if($travel == 5) {
//TRAVEL 5.
if($player->money < 6000 || $player->city_id == 5 || $player->level < 10) {
     header("location: home.php");
}
else {
header("location: washington.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=5 where `id`=?", array($player->money - 6000, $player->id ));
}
}


if($travel == 6) {
//TRAVEL 6.
if($player->money < 6000 || $player->city_id == 6 || $player->level < 10) {
     header("location: home.php");
}
else {
header("location: tokyo.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=6 where `id`=?", array($player->money - 6000, $player->id ));
}
}


if($travel == 7) {
//TRAVEL 7.
if($player->money < 9000 || $player->city_id == 7 || $player->level < 15) {
     header("location: home.php");
}
else {
header("location: moscow.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=7 where `id`=?", array($player->money - 9000, $player->id ));
}
}

if($travel ==  {
//TRAVEL 8.
if($player->money < 12000 || $player->city_id == 8 || $player->level < 20) {
     header("location: home.php");
}
else {
header("location: berlin.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=8 where `id`=?", array($player->money - 12000, $player->id ));
}
}


if($travel == 9) {
//TRAVEL 9.
if($player->money < 16000 || $player->city_id == 9 || $player->level < 25) {
     header("location: home.php");
}
else {
header("location: madrid.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=9 where `id`=?", array($player->money - 16000, $player->id ));
}
}


if($travel == 10) {
//TRAVEL 10.
if($player->money < 20000 || $player->city_id == 10 || $player->level < 30) {
     header("location: home.php");
}
else {
header("location: sydney.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=10 where `id`=?", array($player->money - 20000, $player->id ));
}
}


if($travel == 11) {
//TRAVEL 11.
if($player->money < 22500 || $player->city_id == 11 || $player->level < 40) {
     header("location: home.php");
}
else {
header("location: chicargo.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=11 where `id`=?", array($player->money - 22500, $player->id ));
}
}


if($travel == 12) {
//TRAVEL 12.
if($player->money < 24500 || $player->city_id == 12 || $player->level < 45) {
     header("location: home.php");
}
else {
header("location: singapore.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=12 where `id`=?", array($player->money - 24500, $player->id ));
}
}


if($travel == 13) {
//TRAVEL 13.
if($player->money < 26500 || $player->city_id == 13 || $player->level < 50) {
     header("location: home.php");
}
else {
header("location: mexicocity.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=13 where `id`=?", array($player->money - 26500, $player->id ));
}
}


if($travel == 14) {
//TRAVEL 14.
if($player->money < 30000 || $player->city_id == 14 || $player->level < 60) {
     header("location: home.php");
}
else {
header("location: phoenix.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=14 where `id`=?", array($player->money - 30000, $player->id ));
}
}


if($travel == 15) {
//TRAVEL 15.
if($player->money < 39000 || $player->city_id == 15 || $player->level < 70) {
     header("location: home.php");
}
else {
header("location: amsterdam.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=15 where `id`=?", array($player->money - 39000, $player->id ));
}
}


if($travel == 16) {
//TRAVEL 16.
if($player->money < 46000 || $player->city_id == 16 || $player->level < 85) {
     header("location: home.php");
}
else {
header("location: oslo.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=16 where `id`=?", array($player->money - 46000, $player->id ));
}
}


if($travel == 17) {
//TRAVEL 17.
if($player->money < 55000 || $player->city_id == 17 || $player->level < 100) {
     header("location: home.php");
}
else {
header("location: boston.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=17 where `id`=?", array($player->money - 55000, $player->id ));
}
}


if($travel == 18) {
//TRAVEL 18.
if($player->money < 59000 || $player->city_id == 18 || $player->level < 110) {
     header("location: home.php");
}
else {
header("location: hongkong.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=18 where `id`=?", array($player->money - 59000, $player->id ));
}
}


if($travel == 19) {
//TRAVEL 19.
if($player->money < 63000 || $player->city_id == 19 || $player->level < 125) {
     header("location: home.php");
}
else {
header("location: lasvegas.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=19 where `id`=?", array($player->money - 63000, $player->id ));
}
}


if($travel == 20) {
//TRAVEL 20.
if($player->money < 68000 || $player->city_id == 20 || $player->level < 150) {
     header("location: home.php");
}
else {
header("location: austin.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=20 where `id`=?", array($player->money - 68000, $player->id ));
}
}


if($travel == 21) {
//TRAVEL 21.
if($player->money < 73000 || $player->city_id == 21 || $player->level < 200) {
     header("location: home.php");
}
else {
header("location: miami.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=21 where `id`=?", array($player->money - 73000, $player->id ));
}
}


if($travel == 22) {
//TRAVEL 22.
if($player->money < 78000 || $player->city_id == 22 || $player->level < 250) {
     header("location: home.php");
}
else {
header("location: dublin.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=22 where `id`=?", array($player->money - 78000, $player->id ));
}
}

if($travel == 23) {
//TRAVEL 23.
if($player->money < 83000 || $player->city_id == 23 || $player->level < 300) {
     header("location: home.php");
}
else {
header("location: oakland.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=23 where `id`=?", array($player->money - 83000, $player->id ));
}
}

if($travel == 24) {
//TRAVEL 24.
if($player->money < 84000 || $player->city_id == 24 || $player->level < 350) {
     header("location: home.php");
}
else {
header("location: milan.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=24 where `id`=?", array($player->money - 84000, $player->id ));
}
}

if($travel == 25) {
//TRAVEL 25.
if($player->money < 85000 || $player->city_id == 25 || $player->level < 400) {
     header("location: home.php");
}
else {
header("location: istanbul.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=25 where `id`=?", array($player->money - 85000, $player->id ));
}
}

if($travel == 26) {
//TRAVEL 26.
if($player->money < 86000 || $player->city_id == 26 || $player->level < 450) {
     header("location: home.php");
}
else {
header("location: toronto.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=26 where `id`=?", array($player->money - 86000, $player->id ));
}
}

if($travel == 27) {
//TRAVEL 27.
if($player->money < 90000 || $player->city_id == 27 || $player->level < 500) {
     header("location: home.php");
}
else {
header("location: rome.php");
     $query = $db->execute("update `players` set `money`=?, `city_id`=27 where `id`=?", array($player->money - 90000, $player->id ));
}
}

if($travel == 28) {
// STAFF TRAVEL 28.
if($player->staff < 1) {
     header("location: busstation.php");
}
else {
header("location: area51.php");
     $query = $db->execute("update `players` set `city_id`=28 where `id`=?", array($player->id ));
}
}
}
?>

<?php
include("templates/private_footer.php");
?>
</p>

Link to comment
https://forums.phpfreaks.com/topic/144242-not-redirecting/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.