|
$cname
Hours: $time Credits: $credits Status: "; if ($status == 1) { echo "travelling"; } elseif ($status == 2) { echo "deployed"; } else { echo "idle"; } $sql = "SELECT * FROM `star` WHERE `id` = '$star'"; $result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q02'); $row = mysqli_fetch_assoc($result); $sname = $row['name']; echo " Location: $sname Fleets in this sector:";
$sql = "SELECT * FROM `character` WHERE `location` = '$star'";
$result = mysqli_query($mysqli, $sql) or die($gameerror . 'S-Q03');
$num = mysqli_num_rows($result);
$i = 0;
while ($i < $num)
{ // display others in the region
$row = mysqli_fetch_assoc($result);
$ocname = $row['name'];
echo " |