Kamis, 07 November 2013

PHP Indonesia - Facebook: [ASK] sy buat form login tapi submit muncul error...

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/ 
The Best Way to Manage your Money.

Start using Mint today to set a budget, track your goals and do more with your money.
From our sponsors
[ASK] sy buat form login tapi submit muncul error...
Nov 7th 2013, 13:18, by Rismawati Lasa

Rismawati Lasa 1:18pm Nov 7
[ASK]
sy buat form login tapi submit muncul error.
mohon masukannya....

Rismawati Lasa 1:19pm Nov 7
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..

Rama Dhan 1:24pm Nov 7
hilangkan session_start() nya gan pada halaman submitnya.... ^_^

Eko Agustiawan 1:25pm Nov 7
script yng error coba di share

Rismawati Lasa 1:27pm Nov 7
<?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];
}
?>

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