Jumat, 13 September 2013

PHP Indonesia - Facebook: cara menampilkan data pilihan bagaimana gan, misal...

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/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
cara menampilkan data pilihan bagaimana gan, misal...
Sep 14th 2013, 02:38, by Nur Yulias

Nur Yulias 2:38am Sep 14
cara menampilkan data pilihan bagaimana gan, misal data nya spt berikut ini:
nama tabel : siswa
id_siswa: 01, 02, 03
nama_siswa: andi, emen, narji

sy ingin menampilkan data id_siswa 01 dan 03 bagaimana script select nya
$ambil = "select * from siswa where ............";
dst

newbie lg belajar php. thanks Mz n Mb bro

Ganda Gamaliel Soritua Sinaga 2:42am Sep 14
select * from siswa where id_siswa in ('01','03')

Thoor D'zeroheart 2:44am Sep 14
where id_siswa%2 = 1

Nur Yulias 2:48am Sep 14
thanks
@thoor bagaimana datanya banyak apakah spt itu jg.
@ganda yang muncul 02

Ganda Gamaliel Soritua Sinaga 2:51am Sep 14
katanya mau nampilin yg 01 dan 03... klo mau nampilin 01 dan 03 itu caranya sdh sy buat!... klo cm mau nampilin 02 aja, sesuaikan aja querynya

Nur Yulias 2:55am Sep 14
Oh iya Mz bro benar. Thanks ya.

Thoor D'zeroheart 3:20am Sep 14
itu td buat milih id siswa yg ganjil

Nur Yulias 3:30am Sep 14
oke sip

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

PHP Indonesia - Facebook: baru imigrasi ke versi 1.8.1 maksudnya itu apa ya ...

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/ 
The Best Way to Manage your Money.

Start using Mint today to set a budget, track your goals and do more with your money.
From our sponsors
baru imigrasi ke versi 1.8.1 maksudnya itu apa ya ...
Sep 14th 2013, 02:41, by Coki Widodo

Coki Widodo 2:41am Sep 14
baru imigrasi ke versi 1.8.1 maksudnya itu apa ya yng saya lingkarin

Vinsensius Angelo 2:43am Sep 14
tulisan bahasa inggris yg sudah sangat jelas gan. intinya harus ganti preference phpmyadmin untuk pasang password untuk akses page tsb.

Coki Widodo 2:44am Sep 14
caranya sob gimana

Miftach Udin 2:58am Sep 14
masuk ke security dan set password semua mulai dari sql phpmyadmin dll

Coki Widodo 3:01am Sep 14
Miftach Udin dimana menu scuritynya mas udah saya cari gak ada

Shania Prisillya 3:04am Sep 14
emang efeknya kenapa kalo ngga set password ?
kn cuma offline ?

Coki Widodo 3:08am Sep 14
Shania Prisillya web saya yng di local gak bisa di akses koneksinya gak mau jalan padahal di xampp versi 1.7.5 lancar

Shania Prisillya 3:10am Sep 14
lah punya saya ko bisa2 aja ya walaupun ada tulisan sama kaya di atas :D haha

Coki Widodo 3:11am Sep 14
yah kalo blm dijalanin xampp controlnya ya gak bisa di akses phpmyadminya

Shania Prisillya 3:12am Sep 14
oalah iyaiya lupa , efek baru bangun tidur gini nih whauhahu

Vinsensius Angelo 3:13am Sep 14
setelah diubah, silahkan restart dulu service xampp nya. sebenarnya bukan suatu masalah kalo localhost, itu cuma warning saja.

Shania Prisillya 3:15am Sep 14
^ RT :D


Pengaturan Privasi 3:21am Sep 14
menu sekuritinya ada di xampp
localhost/xampp
#yang ada warna putihnya

Faris Rayhan 3:25am Sep 14
saran bahwa pmanya harus dikasih password terjemahin aja artinya

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

PHP Indonesia - Facebook: [ask] Variabel dalam 1 class tidak dapat dibaca de...

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/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
[ask] Variabel dalam 1 class tidak dapat dibaca de...
Sep 14th 2013, 02:46, by Habib Nurrahman

Habib Nurrahman 2:46am Sep 14
[ask] Variabel dalam 1 class tidak dapat dibaca dengan function. Lihat sepenggal class function berikut. Ketika saya coba panggil add_message('warning', 'Coba pesan'); dan saya panggil prepare_message() kenapa pesan yg tadi tidak muncul ya?
Padahal di bagian construct sudah deklarasi $this->messages['warning'] = array();

Pengaturan Privasi 2:57am Sep 14
print_r-nya yang nggak muncul apapun?
soalnya aku perhatikan kalau di foreach-nya
$type menghasilkan 'warning' sedangkan $message menghasilkan Array dan $message[0] mengasilkan "Coba Pesan"

#CMIIW

Habib Nurrahman 3:08am Sep 14
klo print_r cm muncul Array ( [warning] => Array ( ) )
gamau ngisi kesana...
tp anehnya saya punya function lain, saya print_r kok muncul yaaa...apa ya yg salah

Pengaturan Privasi 3:09am Sep 14
kalau masalah pesan muncul, aku meniru sepenggal itu, ternyata pesan muncul kok,,, tapi munculnya kayak gini..
---------
Warning type : warning
- Coba message
- Coba 2
Warning type : info
- Info 1

Habib Nurrahman 3:11am Sep 14
iya ada yg aneh kali ini, soalnya sebenarnya ini class nya ga cm 2 function sih, ada bnyaak..

itu cm muncul info aja karena tdk di proses di view (dalam codeigniter)

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

PHP Indonesia - Facebook: TANYA UBAH DATA PAKE COMBOBOX AJAX JQUERY salahny...

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/ 
Exotic travel ideas.

Searching for your next vacation destination? Subscribe to Off The Beaten Path, a newsletter featuring captivating locales to help you to plan your next trip.
From our sponsors
TANYA UBAH DATA PAKE COMBOBOX AJAX JQUERY salahny...
Sep 14th 2013, 01:32, by Choirul Rozaq

Choirul Rozaq 1:32am Sep 14
TANYA UBAH DATA PAKE COMBOBOX AJAX JQUERY
salahnya dimana ya..??
mohon koreksinya..

<script type="text/javascript">
$(document).ready(function(){
$("#kelas").change(function(){
var kelas = $("#kelas").val();
$.ajax({
type: "POST",
url: "bagikelas.php?action=ubah",
data: "kelas="+kelas,
success: function(msg){
$("#kelas").html(msg);
}
});
});
});
</script>

ini skrip prosesnya
elseif (isset($_GET['action']) && $_GET['action']=='ubah') {
$update3 = mysql_query("UPDATE tblbagikelas SET
kodekelas = '$_GET[kodekelas]'
WHERE idbagikelas = '$_GET[id]'");

echo"<script>alert('Data berhasil di ubah')</script>";
}


Mas Suwondo 1:37am Sep 14
Lho khan itu type post, jadi yang ada di data itu berarti variabel post. Tapi anehnya datanya variabel post dengan nama : kelas.

Tetapi di pemrosesan kok diambl sebagai variabel GET dengan nama $_GET[kodekelas].

Kayaknyta antara variabel-variabel ayng ditentukan dalam pemanggilan ajax, kagak nyambung dengan variabel ayng dipergunakan dalam pemrosesannya.

Rius Simbolon 1:38am Sep 14
Salahnya di php, kenapa menggunakan $_GET sedangkan AJAXnya menggunakan POST

Mas Suwondo 1:45am Sep 14
Kalau penggunaan GET yang pertama untuk ambil action emang udah tepat, tetapi untuk data, khan dapatnya dari

data:"kelas="+kelas,

berarti ada variabel POST (sesuai dengan type ajax nya), bernama kelas dengan nilai sesuai dengan nilai dari konten variabel kelas.

Tapi di pemrosesan php nya kok jadi

$update3 = mysql_query("UPDATE tblbagikelas SET
kodekelas = '$_GET[kodekelas]'

dan $_GET[id] itu juga munculnya dari mana ??? Khan kagak ada variabel id yang dikirimkan via ajax ???

Rius Simbolon 1:46am Sep 14
Biar nyambung ajaxnya dengan php, di javascriptnya ganti jadi url: "bagikelas.php", data : "action=ubah&kelas="+kelas
Dan di php ganti jd post, smoga membantu :D, oh iya jgn lupa seperi kata master Mas Suwondo variabel yg di post di php harus sama dengan yg di js

Choirul Rozaq 1:46am Sep 14
awalnya saya menggunakan mm_jumpMenu
seperti ini
<?php
$sqlp="SELECT * FROM tblkelas group by namakelas";
$qryp=mysql_query($sqlp)or die();
while($data1 = mysql_fetch_array($qryp)){

echo "<option value='bagikelasaksi.php?action=ubah&id=$data[idbagikelas]&kodekelas=$data1[kodekelas]' >$data1[namakelas]</option>";}
?>
mau saya rubah ke ajax jquery

Choirul Rozaq 1:56am Sep 14
kalau scrip phpnya saya rubah jadi gini
elseif (isset($_GET['action']) && $_GET['action']=='ubah') {
$sql="SELECT * FROM tblkelas group by namakelas";
$q=mysql_query($sql)or die();
$data = mysql_fetch_array($q);

$update3 = mysql_query("UPDATE tblbagikelas SET
kodekelas = '$_GET[kodekelas]'
WHERE idbagikelas = '$_GET[id]'");

echo"<script>alert('Data berhasil di ubah')</script>";
}

bagaiman saya ngambil urlnya..??

$.ajax({
type: "GET",
url: "bagikelas.php?action=ubah&id=$data[idbagikelas]&kodekelas=$data[kodekelas]",
data: "kelas="+kelas,
success: function(msg){
$("#kelas").html(msg);
}
});

Choirul Rozaq 2:21am Sep 14
saya rubah seperti ini masih gak bisa

$("#kelas").change(function(){
var kelas = $("#kelas").val();
var idbagikelas = $("#idbagikelas").val();
$.ajax({
type: "GET",
url: "bagikelas.php",
data : "action=ubah&id="+idbagikelas+"&kelas="+kelas,
success: function(msg){
$("#kelas").html(msg);
}
});

Choirul Rozaq 2:24am Sep 14
logikanya gini
kelas = nilai dari combobox kelas saat dipilih
idbagikelas = saya ambil textbox idbagikelas
saya bingung di ajaxnya
$.ajax({
type: "GET",
url: "bagikelas.php",
data : "action=ubah&id="+idbagikelas+"&kelas="+kelas,
success: function(msg){
$("#kelas").html(msg);
:'(

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

PHP Indonesia - Facebook: ASK Ada yang punya referensi ga gan untuk menampi...

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/ 
The Best Way to Manage your Money.

Start using Mint today to set a budget, track your goals and do more with your money.
From our sponsors
ASK Ada yang punya referensi ga gan untuk menampi...
Sep 14th 2013, 01:50, by Gunawan Frincencius

Gunawan Frincencius 1:50am Sep 14
ASK

Ada yang punya referensi ga gan untuk menampilkan data dari combo box misalnya setelah memilih kelas, semester, tahun pelajaran maka data siswa muncul beserta text field untuk mengisi nilainya

Gunawan Frincencius 2:19am Sep 14
UP

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