• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS 1.0] Gesior: House information on Characters.php

imkingran

Learning everyday.
Premium User
Joined
Jan 15, 2014
Messages
1,317
Solutions
35
Reaction score
435
Hello OtLand Community,

Would anybody be able to help me create this:

mjmmxj.jpg


I am using Gesior 2012 for TFS 1.0

Thanks for your time.
 
PHP:
$h = $SQL->query("SELECT `name`, `paid`, `town_id` FROM `houses` WHERE `owner` = " . $player->getId() . " LIMIT 1")->fetchAll();
if (count($h) != 0) {
    $bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
    $main_content .= '<tr bgcolor="' . $bgcolor . '"><td>House:</td><td>' . $h[0]['name'] . ' (' . htmlspecialchars($towns_list[$h[0]['town_id']]) . ') is paid until ' . str_replace(' ', '&#160;', date('M d Y', $h[0]['paid'])) . '</td></tr>';
}
 
Back
Top