Kamis, 22 Agustus 2013

PHP Indonesia - Facebook: Kang mau nanya nih.. kalau Undifined variable kasu...

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/ 
Design-Led Engineering

Sourcebits - When your Mobile App has to be absolutely developed right. We've built more than 20 apps that have cracked the Top 10 in the App Store.
From our sponsors
Kang mau nanya nih.. kalau Undifined variable kasu...
Aug 22nd 2013, 14:32, by Hikman Ganda Sasmita

Hikman Ganda Sasmita 2:32pm Aug 22
Kang mau nanya nih.. kalau Undifined variable kasusnya gini
<?php
include "koneksi.php";

$id = $_REQUEST['id'];

$detail = "SELECT * FROM tbl_mahasiswa WHERE id_mhs='id'";

$detail_query = mysql_query($detail);

while ($hasil = mysql_fetch_array($detail_query))
{
$nama = $hasil['nama_mhs'];
$jenis_kelamin = $hasil['jenis_kelamin'];
$tanggal_lahir = $hasil['tgl_lahir'];
$alamat = $hasil['alamat'];

$data_lengkap = "Nama : ".$nama."<br>";
$data_lengkap .= "Jenis Kelamin : ".$jenis_kelamin."<br>";
$data_lengkap .= "Tanggal Lahir : ".$tanggal_lahir."<br>";
$data_lengkap .= "Alamat : ".$alamat."<br>";
}

?>
<html>
<head><title><?php echo "informasi $nama"; ?></title>
</head>
<body>
<?php echo "Infomasi Detail Mengenai </strong>$nama</strong> Adalah <br>".$data_lengkap; ?>
</body>
</html>
gmn solusinya y?
agak pusing kalau udah variable global nya yg salah..

Ega Gilang Ramadhan 2:39pm Aug 22
$detail = "SELECT * FROM tbl_mahasiswa WHERE id_mhs='$id'";

Hikman Ganda Sasmita 2:41pm Aug 22
udh g mau.. :)

Hikman Ganda Sasmita 2:42pm Aug 22
Oh udh mas.. TQ.. :D (y)

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