Issues (4542)

modul/mod_kasir/getterm.php (2 issues)

Severity
1
    <?php
2
3
    include '../../config/koneksi.php';
4
5
    $q = intval($_GET['q']);
6
7
    $tampil = mysql_query("SELECT term FROM supplier WHERE id_supplier = '".$q."'");
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

7
    $tampil = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT term FROM supplier WHERE id_supplier = '".$q."'");

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
9
    $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

9
    $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...
10
11
    $term = $r['term'];
12
13
    ?>
14
15
<input type="text" name="term" id="term" value="<?php echo $term; ?>" class="form-control"  readonly>  
16
17
    <?php
18
    //mysqli_close($con);
19
?>