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/ | |
 | Marketing Mobile Apps
This online course focuses on marketing efforts that will increase your app's exposure and establish a mobile app marketing plan. Enroll today for $99.  | From our sponsors | | |
Gan sya mau tanya,, gmn yah cra bkin akun profil m... Sep 3rd 2013, 04:38, by Adhly Victory | Gan sya mau tanya,, gmn yah cra bkin akun profil menggukan PHP.. ketika sudah login kebaca biodata dll. :)
#mhonBantuannya :) |
| | itu pakai session gann logika saat user login daftarkan ke session saat masuk ke bagian biodata cari data berdasarkan id saat user login tadi |
| | Tambahin tabel nya dulu gan, di user name sm password tmbh biodata. Nanti cara ambil biodatanya sama kayak ambil nama user nya |
| | <?php session_start(); include"config/config.php"; ?> <? $user=$_POST[username]; $password=MD5($_POST[password]); $sql=mysql_query("SELECT * FROM user WHERE nama_user='$user' AND password='$password' AND status='aktif'"); $_SESSION['password'] = $password; $_SESSION['user'] = $user; $hasil=mysql_fetch_array($sql); $hitung=mysql_num_rows($sql); if($hitung > 0){ if($hasil[level]=='admin'){ header('location:admin/'); }else{ header('location:user/'); } }else{ echo" <script> alert('User tidak terdaftar !!!!!'); location.href='index.php'; </script> "; } ?> |
| | gmn gan? :) | | |
|
Tidak ada komentar:
Posting Komentar