Hi, i'm trying to show the crimes side by side in two column
like:
Crime1 Crime2
in the engine show:
Crime1
Crime2
the code is:
TableHeader("Crimes");
echo "<table class='plainTable'>";
$result = $db->Execute("select crime_id,name,description,condition_code,success_rate,stat_cost,jail_time,crime_pic from crimes order by crime_id");
foreach ($result as $row)
{
echo "<tr valign='top'>";
$res = true;
if ($row[3] != null && $row[3] != "")
$res = NWEval("return {$row[3]};");
if ($row[5] > $userStats[GetConfigValue("CrimeStatCost", "crime")]->value)
$res = false;
echo "<td width='1%'>";
echo "<img src='$row[7]'/>";
echo "</td>";
$perc = 100;
if ($row[4] != null && $row[4] != "")
$perc = round(NWEval("return {$row[4]};") * 100.0, 0);
if ($perc > 100)
$perc = 100;
echo "<td><b>" . Translate($row[1]) . ":</b><br>" . Translate($row[2]) . "<br><br>";
echo Translate("<font color='green'><b>Success rate") . ": $perc%</b></font><br>" . Translate("<font color='red'><b>Cost") . ": {$row[5]}</b></font><br>";
LinkButton('Do it', 'index.php?p=crime&id={$row[0]}', null, null, false, $res);
echo "</td>";
echo "</tr>";
}
$result->Close();
echo "</table>";
how to do this?
thx guys