I got the results I wanted but I tried forever to do this with a foreach. How would one do this in a foreach.
$i ='0'; while ($i <= $num_rows-1) { echo $sites[$i]['site_name']."<br>"; $i++; }
Using [man]foreach/man:
foreach($sites as $array) { echo $array['site_name']."<br>"; }
Using [man]for/man:
for($i=0; isset($sites[$i]); $i++) { echo $sites[$i]['site_name']."<br>"; }
so simple... THANKS!