Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (version_compare(phpversion(), "5.3.0", ">=") == 1)
- error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
- else
- error_reporting(E_ALL & ~E_NOTICE);
- ?>
- <?php
- //error_reporting(0);
- require_once"../koneksi.php";
- date_default_timezone_set("Asia/Jakarta");
- if(isset($_GET["user"])){
- $user=strip_tags($_GET["user"]);$user=str_replace("_"," ",$user);
- $pass=strip_tags($_GET["pass"]);$pass=str_replace("_"," ",$pass);
- $s="select * from `tb_teknisi` where `username`='$user' and `password`='$pass'";
- $q=mysql_query($s);
- if(mysql_num_rows($q)>0){
- $d=mysql_fetch_array($q);
- $nik_teknisi=$d["nik_teknisi"];if(strlen($nik_teknisi)<1){$nik_teknisi="-";}
- $nama_teknisi=$d["nama_teknisi"];if(strlen($nama_teknisi)<1){$nama_teknisi="-";}
- $lokasi_kerja=$d["lokasi_kerja"];if(strlen($lokasi_kerja)<1){$lokasi_kerja="-";}
- $no_hp=$d["no_hp"];if(strlen($no_hp)<1){$no_hp="-";}
- $username=$d["username"];if(strlen($username)<1){$username="-";}
- $password=$d["password"];if(strlen($password)<1){$password="-";}
- $email=$d["email"];if(strlen($email)<1){$email="-";}
- $status=$d["status"];if(strlen($status)<1){$status="-";}
- $gambar=$d["gambar"];if(strlen($gambar)<1){$gambar="-";}
- $simpan=mysql_query($sql);
- echo"$nik_teknisi#$nama_teknisi#$lokasi_kerja#$no_hp#$username#$password#$email#$status#gambar#sukses";
- }
- else{echo"null";}
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement