?Login.php Start? "; } } } ?>
}; ?> ?End Of Login.php? ?Register.php start.?
Register
?End Of Register.php? ?Lastmember.php start? // set your infomation. $dbhost='localhost'; $dbusername='root'; $dbuserpass='root'; $dbname='root'; //connect to the mysql database server. mysql_connect ($dbhost, $dbusername, $dbuserpass); mysql_select_db($dbname) or die('Cannot select database'); $row1 = mysql_query("SELECT * FROM users ORDER BY uid DESC LIMIT 1") or die(mysql_error()); echo "$row1"; while($row=mysql_fetch_array($row1)) { echo "
$row[username]
"; } ?> ?End of lastmember.php? To check to see if someone is logged in use. if (isset($_COOKIE['user'])) { echo "You are logged in: $_COOKIE['user'] Enjoy."; } else{ echo "You are not logged in.
Register here"; ?>
PHP Free CodeTIP n TRICKS
lHehePepe