Fetching a set of records from a MYSQL data base in PHP.
Using the utility functions this is the basic skeleton to open, query, fetch and process a set of records:
connect_and_select("","sickingf","Ollie","sickingf_family"); $query = "SELECT email FROM emails"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { //loop through row of data
}