All mysql_-statments replaced by their corresponding mysqli_-statements
[cacert-devel.git] / pages / account / 12.php
index f4428aa..234891f 100644 (file)
        }
        $query .= "ORDER BY `modified` desc";
 //echo $query."<br>\n";
-       $res = mysql_query($query);
-       if(mysql_num_rows($res) <= 0)
+       $res = mysqli_query($_SESSION['mconn'], $query);
+       if(mysqli_num_rows($res) <= 0)
        {
 ?>
   <tr>
     <td colspan="8" class="DataTD"><?=_("No certificates are currently listed.")?></td>
   </tr>
 <? } else {
-       while($row = mysql_fetch_assoc($res))
+       while($row = mysqli_fetch_assoc($res))
        {
                if($row['timeleft'] > 0)
                        $verified = _("Valid");