while ($row = mysql_fetch_array($sql_events)) { $id = $row["id"]; $fieldname = $row["fieldname"]; echo "