Senin, 26 Agustus 2013

PHP Indonesia - Facebook: para master... username password saya gak mau m...

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
para master... username password saya gak mau m...
Aug 26th 2013, 12:26, by Irfan Atjeh Rayeuk

Irfan Atjeh Rayeuk 12:26pm Aug 26
para master...

username
password

saya gak mau masok..
padahal databes sama skrip nya dah betol..
mohon bantuan nya...

<?php
session_start();

//sambungkan ke database
$koneksi=mysql_connect("localhost","root","irfan");

//memilih database yang akan dipakai
mysql_select_db("perpus",$koneksi);

//mengambil data dari form login
$username=$_POST['username'];
$password=md5($_POST['password']);

//query untuk mengambil data yang sesuai
$query="select * from user where username='$username' and password='$password'";
$hasil=mysql_query("$query");

$kode = mysql_fetch_array($hasil);

$cek=mysql_num_rows($hasil);

if ($cek==1){
$_SESSION['username']=$kode['id'];
?>

Joseph Tarigan 12:31pm Aug 26
passwordnya memang diencode ke md5 kah? :D

coba tanpa md5, $password=$_POST['password'];

:)

Irfan Atjeh Rayeuk 12:35pm Aug 26
oce...
makasih sob...

Astomo Pancoro Putro 12:38pm Aug 26
yg btl mysql_query($query);

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