I have extracted some data from mysql database using php. In the script, i have
$result=mysql_query("select mac,ip_add from arp_table where ip_add='$var'");
$row=mysql_fetch_row($result);
print_r($row);
The result comes out as
Array ( [0] => 08 CC 68 71 A1 C0 [1] => 1.10.0.0.98 )
But i would want to modify it and have it come out as
MAC Address for 1.10.0.0.98 is 08 CC 68 71 A1 C0
How can i achieve this result?