$results = $db->query_read("SELECT * FROM table");while($row = $db->fetch_array($results)){eval('$data =. "' . fetch_template('template_name') . '";');}