3v4l.org

run code in 300+ PHP versions simultaneously
<h3>Data Barang Beli</h3> </br> <a href="?p=BeliInput" ><?php BtnHijau("Tambah Barang");?></a> </table> <table> <tr align="center"> <td width="20" height="33"><strong>No</strong></td> <td width="67"><strong>No Nota</strong></td> <td width="55"><strong>Tanggal Beli</strong></td> <td width="30"><strong>Supplier</strong></td> <td width="48"><strong>Kode Barang</strong></td> <td width="57"><strong>Nama Barang</strong></td> <td width="57"><strong>Jumlah</strong></td> <td width="57"><strong>Harga</strong></td> <td width="56"><strong>Aksi</strong></td> </tr> <?php //mulai paging $sql = mysql_query("SELECT * FROM beli"); $nr = mysql_num_rows($sql); if (isset($_GET['pn'])) { $pn = preg_replace('#[^0-9]#i', '', $_GET['pn']); } else { $pn = 1; } $show=15; $halaman=new paging(); $pages=$halaman->itemspage("$_SERVER[PHP_SELF]?p=Beli",$show,$nr,$pn); $limit="LIMIT $pages[j], $show"; $sql2 = mysql_query("SELECT nota,tgl_b,nama_s,beli.kd_brg as kode,master.nama_brg as nama,jml_b,hrg_b from beli,supplier,master WHERE master.kd_brg=beli.kd_brg and supplier.kd_supp=beli.kd_supp ORDER BY tgl_b DESC $limit"); //batas paging atas while($r =mysql_fetch_array($sql2)) { $no++; ?> <tr> <td align="center"><?php echo $no; ?></td> <td><?php echo $r[nota]; ?></td> <td><?php echo $r[tgl_b]; ?></td> <td><?php echo $r[nama_s]; ?></td> <td><?php echo $r[kode]; ?></td> <td><?php echo $r[nama]; ?></td> <td><?php echo $r[jml_b]; ?></td> <td><?php echo $r[hrg_b]; ?></td> <td width="56" align="center"><a href="?p=BeliEdit&id=<?php echo $r[kd_supp] ?>"><img src='images/edit.png' title='Edit'></a> | <a href="?p=BeliEdit&s=del&id=<?php echo $r[kd_supp]; ?>" onclick="return ConfirmDelete()"><img src="images/delete.png" width="16" height="16" /></a></td> </tr> <?php } ?> </table><br /> <?php halamanbawah("$nr","$pages[disp]"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 54
Branch analysis from position: 99
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 99, Position 2 = 54
Branch analysis from position: 99
Branch analysis from position: 54
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
filename:       /in/HZeev
function name:  (null)
number of ops:  108
compiled vars:  !0 = $sql, !1 = $nr, !2 = $pn, !3 = $show, !4 = $halaman, !5 = $pages, !6 = $limit, !7 = $sql2, !8 = $no, !9 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Ch3%3EData+Barang+Beli%3C%2Fh3%3E%0A%3C%2Fbr%3E%0A%3Ca+href%3D%22%3Fp%3DBeliInput%22+%3E'
    3     1        INIT_FCALL_BY_NAME                                       'BtnHijau'
          2        SEND_VAL_EX                                              'Tambah+Barang'
          3        DO_FCALL                                      0          
          4        ECHO                                                     '%3C%2Fa%3E%0A%3C%2Ftable%3E%0A%3Ctable%3E%0A++%3Ctr+align%3D%22center%22%3E%0A++++%3Ctd+width%3D%2220%22+height%3D%2233%22%3E%3Cstrong%3ENo%3C%2Fstrong%3E%3C%2Ftd%3E%0A++++%3Ctd+width%3D%2267%22%3E%3Cstrong%3ENo+Nota%3C%2Fstrong%3E%3C%2Ftd%3E%0A++++%3Ctd+width%3D%2255%22%3E%3Cstrong%3ETanggal+Beli%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%3Ctd+width%3D%2230%22%3E%3Cstrong%3ESupplier%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%3Ctd+width%3D%2248%22%3E%3Cstrong%3EKode+Barang%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%3Ctd+width%3D%2257%22%3E%3Cstrong%3ENama+Barang%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%3Ctd+width%3D%2257%22%3E%3Cstrong%3EJumlah%3C%2Fstrong%3E%3C%2Ftd%3E%0A%09%3Ctd+width%3D%2257%22%3E%3Cstrong%3EHarga%3C%2Fstrong%3E%3C%2Ftd%3E%0A++++%3Ctd+width%3D%2256%22%3E%3Cstrong%3EAksi%3C%2Fstrong%3E%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A%0A'
   20     5        INIT_FCALL_BY_NAME                                       'mysql_query'
          6        SEND_VAL_EX                                              'SELECT+%2A+FROM+beli'
          7        DO_FCALL                                      0  $11     
          8        ASSIGN                                                   !0, $11
   21     9        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $13     
         12        ASSIGN                                                   !1, $13
   22    13        FETCH_IS                                         ~15     '_GET'
         14        ISSET_ISEMPTY_DIM_OBJ                         0          ~15, 'pn'
         15      > JMPZ                                                     ~16, ->25
   23    16    >   INIT_FCALL                                               'preg_replace'
         17        SEND_VAL                                                 '%23%5B%5E0-9%5D%23i'
         18        SEND_VAL                                                 ''
         19        FETCH_R                      global              ~17     '_GET'
         20        FETCH_DIM_R                                      ~18     ~17, 'pn'
         21        SEND_VAL                                                 ~18
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !2, $19
         24      > JMP                                                      ->26
   25    25    >   ASSIGN                                                   !2, 1
   28    26    >   ASSIGN                                                   !3, 15
   29    27        NEW                                              $23     'paging'
         28        DO_FCALL                                      0          
         29        ASSIGN                                                   !4, $23
   30    30        INIT_METHOD_CALL                                         !4, 'itemspage'
         31        FETCH_R                      global              ~26     '_SERVER'
         32        FETCH_DIM_R                                      ~27     ~26, 'PHP_SELF'
         33        NOP                                                      
         34        FAST_CONCAT                                      ~28     ~27, '%3Fp%3DBeli'
         35        SEND_VAL_EX                                              ~28
         36        SEND_VAR_EX                                              !3
         37        SEND_VAR_EX                                              !1
         38        SEND_VAR_EX                                              !2
         39        DO_FCALL                                      0  $29     
         40        ASSIGN                                                   !5, $29
   31    41        ROPE_INIT                                     4  ~33     'LIMIT+'
         42        FETCH_DIM_R                                      ~31     !5, 'j'
         43        ROPE_ADD                                      1  ~33     ~33, ~31
         44        ROPE_ADD                                      2  ~33     ~33, '%2C+'
         45        ROPE_END                                      3  ~32     ~33, !3
         46        ASSIGN                                                   !6, ~32
   32    47        INIT_FCALL_BY_NAME                                       'mysql_query'
         48        NOP                                                      
         49        FAST_CONCAT                                      ~36     'SELECT+nota%2Ctgl_b%2Cnama_s%2Cbeli.kd_brg+as+kode%2Cmaster.nama_brg+as+nama%2Cjml_b%2Chrg_b+from+beli%2Csupplier%2Cmaster+WHERE+master.kd_brg%3Dbeli.kd_brg+and+supplier.kd_supp%3Dbeli.kd_supp+ORDER+BY+tgl_b+DESC+', !6
         50        SEND_VAL_EX                                              ~36
         51        DO_FCALL                                      0  $37     
         52        ASSIGN                                                   !7, $37
   34    53      > JMP                                                      ->94
   36    54    >   PRE_INC                                                  !8
   37    55        ECHO                                                     '%09+++%0A%3Ctr%3E%0A++++%3Ctd+align%3D%22center%22%3E'
   39    56        ECHO                                                     !8
         57        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   40    58        FETCH_CONSTANT                                   ~40     'nota'
         59        FETCH_DIM_R                                      ~41     !9, ~40
         60        ECHO                                                     ~41
         61        ECHO                                                     '%3C%2Ftd%3E%0A++++%3Ctd%3E'
   41    62        FETCH_CONSTANT                                   ~42     'tgl_b'
         63        FETCH_DIM_R                                      ~43     !9, ~42
         64        ECHO                                                     ~43
         65        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   42    66        FETCH_CONSTANT                                   ~44     'nama_s'
         67        FETCH_DIM_R                                      ~45     !9, ~44
         68        ECHO                                                     ~45
         69        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   43    70        FETCH_CONSTANT                                   ~46     'kode'
         71        FETCH_DIM_R                                      ~47     !9, ~46
         72        ECHO                                                     ~47
         73        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   44    74        FETCH_CONSTANT                                   ~48     'nama'
         75        FETCH_DIM_R                                      ~49     !9, ~48
         76        ECHO                                                     ~49
         77        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   45    78        FETCH_CONSTANT                                   ~50     'jml_b'
         79        FETCH_DIM_R                                      ~51     !9, ~50
         80        ECHO                                                     ~51
         81        ECHO                                                     '%3C%2Ftd%3E%0A%09%3Ctd%3E'
   46    82        FETCH_CONSTANT                                   ~52     'hrg_b'
         83        FETCH_DIM_R                                      ~53     !9, ~52
         84        ECHO                                                     ~53
         85        ECHO                                                     '%3C%2Ftd%3E%0A++++%3Ctd+width%3D%2256%22+align%3D%22center%22%3E%3Ca+href%3D%22%3Fp%3DBeliEdit%26id%3D'
   47    86        FETCH_CONSTANT                                   ~54     'kd_supp'
         87        FETCH_DIM_R                                      ~55     !9, ~54
         88        ECHO                                                     ~55
         89        ECHO                                                     '%22%3E%3Cimg+src%3D%27images%2Fedit.png%27+title%3D%27Edit%27%3E%3C%2Fa%3E+%7C+%3Ca+href%3D%22%3Fp%3DBeliEdit%26s%3Ddel%26id%3D'
         90        FETCH_CONSTANT                                   ~56     'kd_supp'
         91        FETCH_DIM_R                                      ~57     !9, ~56
         92        ECHO                                                     ~57
         93        ECHO                                                     '%22+onclick%3D%22return+ConfirmDelete%28%29%22%3E%3Cimg+src%3D%22images%2Fdelete.png%22+width%3D%2216%22+height%3D%2216%22+%2F%3E%3C%2Fa%3E%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A'
   34    94    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         95        SEND_VAR_EX                                              !7
         96        DO_FCALL                                      0  $58     
         97        ASSIGN                                           ~59     !9, $58
         98      > JMPNZ                                                    ~59, ->54
   52    99    >   ECHO                                                     '%3C%2Ftable%3E%3Cbr+%2F%3E%0A'
   54   100        INIT_FCALL_BY_NAME                                       'halamanbawah'
        101        CAST                                          6  ~60     !1
        102        SEND_VAL_EX                                              ~60
        103        FETCH_DIM_R                                      ~61     !5, 'disp'
        104        CAST                                          6  ~62     ~61
        105        SEND_VAL_EX                                              ~62
        106        DO_FCALL                                      0          
   55   107      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.5 ms | 1408 KiB | 15 Q