List of Users and Emails

\n"; /* printing table headers */ for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); print "{$field->name}"; } print "Actions"; /* extra column for email link */ print "\n"; /* printing table rows */ while($row = mysql_fetch_row($result)) { print ""; /* $row is array... foreach( .. ) puts * every element of $row into $cell variable */ foreach($row as $cell) print "$cell"; print" View emails\n"; print "\n"; } print "\n"; } ?>