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/ | |
 | Curious about BaaS?
Get the full feature comparison in our free eBook comparing the time to create your own cloud backend to a Backend as a Service like Kinvey.  | From our sponsors | | |
Bismillah.. Permisi mas gan, mau tanya cara ambil ... Oct 18th 2013, 23:09, by Irfan Sulistyawan | Bismillah.. Permisi mas gan, mau tanya cara ambil data pada tabel berdasarkan session username yang tersimpan gimana ya... *maaf, masih newbie banget dengan php :D hehe
<?php $kodepanggil = "select nama from admin where username = ' ... '"; $sqql = mysql_query($kodepanggil); $panggil = mysql_fetch_array($sqql); $user = $_SESSION['username']; echo "<table><tr><td>Nama</td><th>:</th><td><b>$panggil[nama]</b></td></tr>"; echo "<tr><td>Username</td><th>:</th><td><b>$user</b></td></tr></table>"; ?>
oiya, sekalian minta bantuan merapikan koding htmlnya kalo boleh ^_^ hihi |
| | Di form ini session_start(); dpaling atas .
$sqql = "select nama from admin where username = ' $_SESSION[usename] '"; $panggil = mysql_fetch_array($sqql); | | |
|
Tidak ada komentar:
Posting Komentar