schubkarre
Neues Mitglied
Hallo,
Ich habe jetzt mal mithilfe eines Turorial ein Gästebuch programmiert. Jetzt habe ich nur noch ein Problem und zwar möchte ich gerne dass der neuste eintrag immer als erstes kommt.
Hier der Code der Ausgabe
Würde mich über Antworten sehr freuen.
Ich habe jetzt mal mithilfe eines Turorial ein Gästebuch programmiert. Jetzt habe ich nur noch ein Problem und zwar möchte ich gerne dass der neuste eintrag immer als erstes kommt.
Hier der Code der Ausgabe
PHP:
<?php
include("config.php");
$sql="SELECT * FROM `guestbook` WHERE `show` = '1'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<table border="1" width="500">
<tr>
<td colspan="2"><big><b><? echo $rows['title']; ?></b></big></td>
</tr>
<tr valign="top">
<td width="100">Von: <? echo $rows['name']; ?><br /><a href="mailto:<? echo $rows['email']; ?>"><? echo $rows['email']; ?></a></td>
<td width="400"><? echo $rows['message']; ?></td>
</tr>
</table>
<?
}
mysql_close();
?>
Würde mich über Antworten sehr freuen.