The following code gives me a parse error on the blank line right before the last '}'. I can't figure out why though.
<?
$query = "SELECT * FROM modems ORDER BY m_id ASC";
$items = mysql_query($query) or die("Select Modem List Failed!");
while ($item = mysql_fetch_array($items)) {
$mday = $item['m_day'];
$mday = $mday + "1";
$mac = $item['m_mac'];
$ass = $item['m_ass'];
$date = $item['m_date'];
$stat = $item['m_stat'];
$query = "DELETE FROM modems WHERE (m_id = $mac)";
mysql_query($query) or die("Insert Failed!");
$query = "INSERT INTO modems (m_id, m_mac, m_ass, m_date, m_stat, m_day) VALUES
(0000,'$mac','$ass','$date','$stat','$mday')";
mysql_query($query) or die("Modem Insert Failed!")
}
?>