Get IP Address :
$ip=$_SERVER['HTTP_CLIENT_IP'];
Insert Into Mysql
$ins=mysql_query("INSERT INTO smp_result SET point='$option',ip='$ip', tm='$id'");
Show the result :
$prog=mysql_query("SELECT * FROM smp_result WHERE tm='$id' AND ip='$ip'");
but the stored IP Address is the IP Address of the ISP, what if I want to save the DHCP IP Address ??