hessian...i have try using what you told me..but still cannot seperate my IP address...
if let say my old ip address i set as $IPaddress, the value is 172.10.10.100
then the $iparray[0] i got is still the value of old IP address, still is 172.10.10.100....$iparray[1] and so on is empty...what happen????
below is my coding...
//the data is from database
$sql="
SELECT ID, IPaddress
FROM $table_name
WHERE ID =\"$ID\"
";
$result=@($sql, $connection) or die("no connectivity information");
$myconnect=mysql_fetch_array($result_connect);
$ID = $myconnect['ID'];
$IPaddress = $myconnect['IPaddress'];
$IParray = explode("." , $IPaddress);
$IParray[0];
$IParray[1];
$IParray[2];
$IParray[3];
echo $IParray[0];
echo $IParray[1];
aft i echo the $IParray[1] is blank
actually i want $IPadday[0] is 127, then$IParray[1] is 10 and so on...
thanks........