How can I do in such a way that when someone enters on Web,automatically from the database is shown his name taking information from IP desc if he is register
<?php
$ip_demo = getenv("REMOTE_ADDR");
include"sec/db.php";
$result = mysql_query("SELECT * FROM blog_name");
while($row = mysql_fetch_array($result))
{
$name_demo = $row["name_demo"];
$ip = $row["ip"];
if ($ip_demo = $ip)
........
}
?>
some licke this if im not wrong Please help