pagi all... mu taya ne menurut anda tampil dengan sql ne argumennya benar tidak $sql=mysql_query("select * from peta,surveyor where nopeta='$_GET[nopeta]'and nama='$_GET[nama]'"); while($anu=mysql_fetch_object($sql)) | |||
Benar kok. | |||
Knp gak menggunakan mysql_fetch_array?? | |||
hehe.. menuruti apa isi hati mas.. emm td udah tak pake array.. tp ksalahannya tetep sama aja mas.. | |||
mohon pencerahannya ya mas.. | |||
nopeta='$_GET[nopeta]'and harusnya nopeta='$_GET[nopeta]' and | |||
apa bedanya mas sandi kan sama saja?? | |||
emm mohon pencerahannya Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in F:\digarap\xampp\htdocs\---onemyrelease\alldata\update1.php on line 12 | |||
harusnya ada spasi antara nopeta='$_GET[nopeta]' dan and | |||
ga da ngaruhnya mas.. | |||
btw ini maksudnya qoma setelah peta apa ini?? "peta,surveyor" apa manggil dua table sekaligus?? gw rasa disini letak erronya *mungkin lhoooooooooo* | |||
iya si 2 table sekaligus.. klo eroor ko tak jalanin di sql benar mas dan sedangkan klo 1 table misalnya | |||
$sql=mysql_query("select * from peta where nopeta='$_GET[nopeta]'"); while($anu=mysql_fetch_object($sql)) | |||
tetap aja sama keterangannya.. | |||
Coba pake logika ini buat menggabungkan 2 table : $query = "SELECT english.eng_word as eng_word FROM english,thesaurus WHERE thesaurus.eng_id='".$eng_id."'and thesaurus.sim_id=english.eng_id"; | |||
sudah coba cek di phpmyadmin om? select * from peta,surveyor where nopeta='111' and nama='saya' |
Oh Php 01 Jul, 2013
-
Source: http://www.facebook.com/groups/35688476100/?id=10151727691381101
--
Manage subscription | Powered by rssforward.com
Tidak ada komentar:
Posting Komentar