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/ | |
|
[ASK] sy buat form login tapi submit muncul error... Nov 7th 2013, 13:18, by Rismawati Lasa | [ASK] sy buat form login tapi submit muncul error. mohon masukannya.... |
| | Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\gardentruck\cek_login.php:1) in C:\xampp\htdocs\gardentruck\cek_login.php on line 14.. |
| | hilangkan session_start() nya gan pada halaman submitnya.... ^_^ |
| | script yng error coba di share |
| | <?php include "config/koneksi.php"; function anti_injection($data){ $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)))); return $filter; } $pass=anti_injection (md5($_POST[password])); $user=$_POST[username]; $sql=mysql_query("select * from staff_surat where username='$user' and password='$pass'"); $level=mysql_num_rows($sql); $r=mysql_fetch_array($sql); if ($level > 0){ session_start();
$_SESSION[username] = $r[username]; $_SESSION[password] = $r[password]; $_SESSION[level] = $r[level]; } ?> | | |
|
Tidak ada komentar:
Posting Komentar