[quote=user465]hello
i want to show who is the newst member
i have these codes but something is wrong
the table is called users where all members are saved
but it only says Our very newest member is:
and nothing more
here the codes
PHP Code:
<?php $dbHost = "localhost"; $dbUser = "***"; $dbPass = "***"; $dbName = "***"; $connect = mysql_connect($dbHost, $dbUser, $dbPass) or die("Keine Verbindung zum Datenbankserver!"); mysql_select_db($dbName); $sql = "SELECT * FROM users ORDER BY id DESC LIMIT 0, 1"; $do = mysql_query($sql); $fetch = mysql_fetch_array($do); echo "Our newest member is: ".$fetch['user']; ?>
Last edited by user465; 11-15-2005 at 12:27 PM..
|