Issues (4542)

content.php (2 issues)

Severity
1
<?php
2
3
include 'config/koneksi.php';
4
5
    $tampil = mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan");
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

5
    $tampil = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT * FROM modul where link !='' ORDER BY urutan");

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
6
7
    while ($r = mysql_fetch_array($tampil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

7
    while ($r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($tampil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
8
        $p = strlen($r['link']);
9
        $mod = substr($r['link'], 8, $p);
10
11
        //  echo"$mod<br>";
12
        //  echo"$_GET[module]<br>";
13
        //  echo"modul/mod_$mod.php<br>";
14
//
15
16
        if (isset($_GET['module']) && $_GET['module'] == $mod) {
17
            //include "modul/mod_$mod.php";
18
            include "modul/mod_$mod/$mod.php";
19
        }
20
    }
21
22
// Apabila modul tidak ditemukan
23
//else{
24
//  echo "<p><b>Modul Not Found.</b></p>";
25
//}
26