Contoh variabel session login :
klo pake php....pada saat login username sama passwordnya dibuat session dulu, nanti setelah itu tinggal query aja dech...contoh yach:
$var1 = $_SESSION['username'];
$var2 = $_SESSION['password'];
select nama,telpon,alamat from mhs where username = '$var1' and password = '$var2'
ato juga bisa begini
select *from mhs where username = '$var1' and password = '$var2'
klo pake php....pada saat login username sama passwordnya dibuat session dulu, nanti setelah itu tinggal query aja dech...contoh yach:
$var1 = $_SESSION['username'];
$var2 = $_SESSION['password'];
select nama,telpon,alamat from mhs where username = '$var1' and password = '$var2'
ato juga bisa begini
select *from mhs where username = '$var1' and password = '$var2'
Tidak ada komentar:
Posting Komentar