All mysql_-statments replaced by their corresponding mysqli_-statements
[cacert-devel.git] / www / rss.php
index f8eddb7..fedf9fd 100644 (file)
@@ -12,8 +12,8 @@
                <lastBuildDate><?=date("D, d M Y H:i:s O")?></lastBuildDate>
                <ttl>3600</ttl><?
        $query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 10";
-       $res = mysql_query($query);
-       while($row = mysql_fetch_assoc($res))
+       $res = mysqli_query($_SESSION['mconn'], $query);
+       while($row = mysqli_fetch_assoc($res))
        { ?>
                <item>
                        <title><?=strip_tags($row['short'])?></title>