>Ausgabe: Resource id #4 Was ist los?
$max ist eine gültige rückgabe einer sql-abfrage...das ist da los!
probiers mal mit:
$max = mysql_query("SELECT MAX(nummer) AS maximum FROM gaestebuch");
$result = mysql_fetch_array( $max );
echo $result[ 'maximum' ];
oder wie machst du sonst db-abfragen mit php?
> (also der mit der höchsten id, neustes datum)
ORDER BY id/timestamp DESC LIMIT 0,1
ich empfehle dir mal diese lektüren:
http://dev.mysql.com/doc/mysql/de/index.html
http://tut.php-q.net/mysql.html
http://www.dclp-faq.de/ch/ch-databases.html