Whoa hold it!

Got the error, $Mac inside the for loop is no longer an array but a string

replace :

Code:

$PMAC = $MAC[0]



with

Code:


$PMAC = $MAC



and don't forget the next
_________________________