I'm trying to use a foreach function to loop through my query results and display just the contents of the field called 'headlines'. Does anyone know of a spot on tutorial for this type of loop please.
use a foreach function to loop through my query results why?
if ( $resid = mysql_query(' SELECT * FROM tbl ') ) { while ( $arr = mysql_fetch_array($resid) ) { # use $arr['headlines'] } };