Page " . ($i + 1) . ""; }else { $options .= ""; } } $page = " Magazine Archive
\"archive\"
"; $sql= "SELECT * FROM `mag_archive` WHERE `agent_id`='$agentid' AND `golive_date`<= NOW() ORDER BY `golive_date` DESC LIMIT $offset, $limit "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { $page.=" "; } $page .= "
"; // echo $page;