mysql_connect() deprecated
Change-Id: I4c1143f01c527904394c8a63f8d880f6cc8a4f4a
diff --git a/html/process_update_sites.php b/html/process_update_sites.php
index d58f45a..a3b2052 100644
--- a/html/process_update_sites.php
+++ b/html/process_update_sites.php
@@ -52,7 +52,7 @@
INNER JOIN release_trains AS t on t.train_id = r.train_id
WHERE m.is_active = 1 AND m.is_map_file = 0 AND t.is_active = 1";
$rs_maps = mysqli_query($dbh, $sql);
-while($update_site = mysql_fetch_assoc($rs_maps)) {
+while($update_site = mysqli_fetch_assoc($rs_maps)) {
$site_url = $update_site['location'];
$project_id = $update_site['project_id'];
$version = $update_site['version'];
@@ -75,7 +75,7 @@
$files_collected[$project_id][$version] = 1;
$sql = "SELECT * FROM files WHERE project_id = \"$project_id\" AND version = \"$version\"";
$rs_files = mysqli_query($dbh, $sql);
- while ($myrow_files = mysql_fetch_assoc($rs_files)) {
+ while ($myrow_files = mysqli_fetch_assoc($rs_files)) {
$file = new File();
$file->project_id = $myrow_files['project_id'];
$file->version = $myrow_files['version'];
@@ -99,7 +99,7 @@
$patterns[] = "/^.*\.test\/.*$/";
$patterns[] = "/^.*\.tests\/.*$/";
$patterns[] = "/^.*\.testing\/.*$/";
- while ($myrow_patterns = mysql_fetch_assoc($rs_patterns)) {
+ while ($myrow_patterns = mysqli_fetch_assoc($rs_patterns)) {
$patterns[] = $myrow_patterns['pattern'];
}