i'm really confused about something and need some advice. i want to be able to loop through 2 arrays at the same time but i can't seem to figure it out.
$query = "SELECT * FROM `table1`" ;
$result = mysql_query($query) or die(mysql_error());
$total = mysql_num_rows($result);
while($row = mysql_fetch_array($result)){
$ip = $row['ip'];
$domain = $row['domain'];
}
..... bunch of code using $ip and $domain variables .....
i was going to use foreach, but i can only do 1 array at a time.
foreach($ip as $aip){
echo "$aip"; // how can i add my $domain array as well?
}
am i missing something? how can i use both arrays at the same time? sorry for the noob question.