Als ik desc limit gebruik en order bij id dan gaat het als volgt:
1
10
11
12
13
2
3
4
5
6
7
8
9
Maar 10 moet naar 9 iemand een oplossing:
<?php
$select = 'SELECT * FROM `chat` ORDER BY `id` DESC LIMIT 4' ;
$query = mysql_query($select);
while ($chat = mysql_fetch_object($query)) {
echo " Naam: <font color='#999999'>".$chat->naam."</font><br>Bericht: <font color='#999999'>".$chat->bericht."</font><br><br>"; }
?>
in database:
naam: id
type: tekst
Collatie: latin1_swedish_ci
1.092 views