All mysql_-statments replaced by their corresponding mysqli_-statements
[cacert-devel.git] / www / account.php
index c7f34a3..76a7b53 100644 (file)
 
        } else if($id == 51 && $_GET['img'] == "show") {
                $query = "select * from `tverify` where `id`='".intval($_GET['photoid'])."' and `modified`=0";
 
        } else if($id == 51 && $_GET['img'] == "show") {
                $query = "select * from `tverify` where `id`='".intval($_GET['photoid'])."' and `modified`=0";
-               $res = mysql_query($query);
-               if(mysql_num_rows($res))
+               $res = mysqli_query($_SESSION['mconn'], $query);
+               if(mysqli_num_rows($res))
                {
                {
-                       $row = mysql_fetch_assoc($res);
+                       $row = mysqli_fetch_assoc($res);
                        readfile($row['photoid']);
                } else {
                        die("No such file.");
                        readfile($row['photoid']);
                } else {
                        die("No such file.");