Sabtu, 28 September 2013

PHP Indonesia - Facebook: [ask] sy kan buat php gbr 1. buat pertanyaan.. gbr...

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/ 
Learn Adobe Illustrator CS6 Master Techniques from an Adobe Guru!

With over 25 years of experience teaching, Robert Farrell has been a trusted instructor for individuals and companies who want to improve their Adobe skills.
From our sponsors
[ask] sy kan buat php gbr 1. buat pertanyaan.. gbr...
Sep 29th 2013, 05:51, by Sarli Waode Lhya

Sarli Waode Lhya 5:51am Sep 29
[ask]
sy kan buat php
gbr 1. buat pertanyaan..
gbr 2. hasilx..
gbr 3. table databasex..

jadi klo pertanyaan di jwb maka hasilx sperti gbr. 2.. tapi jawaban masih dlm satu table database..
gmn ya caranya jawaban yang dilingkar "merah" dipisah ke table lain, jadi jawbanya berada di table lain??

Jeffry 6:02am Sep 29
listingx??

Sarli Waode Lhya 6:02am Sep 29
<?php
include("koneksi.php");


if(!isset($_GET['idpertanyaan'])){
//tampilkan pertanyaan pertama
$sqlp = "select * from diagnosa where mulai='Y'";
$rs=mysql_query($sqlp);

$data=mysql_fetch_array($rs);

//bentuk pertanyaan
echo "<form>";

echo $data['solusi_dan_pertanyaan']."<br>";
echo "<input type='radio' name='idpertanyaan' value='".$data['bila_benar']."'>Ya<br>";
echo "<input type='radio' name='idpertanyaan' value='".$data['bila_salah']."'>Tidak<br>";
echo "<input type='submit' value='Lanjut >> ' >";
echo "</form>";

}else{
//tampilkan pertanyaan pertama
$idsolusi=$_GET['idpertanyaan'];
$sqlp = "select * from diagnosa where id=$idsolusi";
$rs=mysql_query($sqlp);

$data=mysql_fetch_array($rs);

//bentuk pertanyaan
echo "<form>";

echo $data['solusi_dan_pertanyaan']."<br>";

if($data['selesai']!="Y"){
echo "<input type='radio' name='idpertanyaan' value='".$data['bila_benar']."'>Ya<br>";
echo "<input type='radio' name='idpertanyaan' value='".$data['bila_salah']."'>Tidak<br>";
echo "<input type='submit' value='Lanjut >> ' >";
}else{
//jika ingin menambah pertanyaan
}
echo "</form>";

}
?>

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