edem eredeti hozzászólása
Na, így már érthető. Azt próbáltad már, hogy
Kód:
SELECT t0.marka, t0.tipus, t1.uzenet, t1.datum FROM garazs_vt t0 RIGHT JOIN garazs_hozzaszolas t1 ON t0.id = t1.id_tuning LIMIT 6
Hát, egyenlőre így sem jó. Amit most ad:
Ferrari 288 ... - 2010-02-26 13:59
Lexus IS200 ... - 2010-02-26 13:55
Lexus IS200 ... - 2010-02-26 13:55
Volkswagen Eos ... - 2010-02-26 13:56
Volkswagen Eos ... - 2010-02-26 13:56
Ferrari 288 ... - 2010-02-26 13:59
a kód:
Kód:
<?php
$lekeres = mysql_query("SELECT t0.marka, t0.tipus, t1.uzenet, t1.datum FROM garazs_vt t0 RIGHT JOIN garazs_hozzaszolas t1 ON t0.id = t1.id_tuning LIMIT 6");
?><table border="0" width="215px"><?php
while($l = mysql_fetch_array($lekeres)) {
$nev = marka($l['marka'])." ".$l['tipus'];
$nev = substr($nev, 0, 16);
?>
<tr valign="top" align="left">
<td width="110px" align="left">
<a href="/garazs/tuning/<?php echo $kocsi['id']; ?>/"><?php echo $nev." ..."; ?></a>
</td>
<td width="105px" align="right">- <span style="font-size:11px;"><?php echo timestamp($l['datum'])?></span></td>
</tr><?php
}
?>