Selasa, 10 September 2013

PHP Indonesia - Facebook: mau tanya. apa maksut script anti_injection di baw...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Refresh your vocabulary.

Learn a new word everyday by subscribing to Word of the Day. A great tool if you're studying for the GRE, GMAT or LSAT, or simply want to enhance your lexicon.
From our sponsors
mau tanya. apa maksut script anti_injection di baw...
Sep 10th 2013, 14:57, by Ari Candra Setiawan

Ari Candra Setiawan 2:57pm Sep 10
mau tanya. apa maksut script anti_injection di bawah ini?
<?php
function anti_injection($data){
$filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES))));
return $filter;
}
$user=anti_injection($_POST[user]);
$pass=anti_injection($_POST[pass]);
$a=mysql_query("select * from pengguna where username='$user' and password=md5('$pass')");
$b=mysql_fetch_array($a);
$c=mysql_num_rows($a);
if($c>0){
session_start();
$_SESSION[user_name]=$user;
$_SESSION[user_password]=$pass;
$_SESSION[full_name]=$b[nama];
$_SESSION[user_level]=$b[level];
}
?>

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar