Sabtu, 24 Agustus 2013

PHP Indonesia - Facebook: Misi2 mau tanya query di postgre Saya punya Tabel...

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
Misi2 mau tanya query di postgre Saya punya Tabel...
Aug 24th 2013, 10:40, by Robby Liaw

Robby Liaw 10:40am Aug 24
Misi2 mau tanya query di postgre

Saya punya Tabel A dan Tabel B, keduanya ada field yg sama misal id_member type nya integer..

Nah waktu di query : SELECT * FROM A WHERE id_member=".$id_member." ,

eh keluar error :
Warning: pg_query(): Query failed: ERROR: invalid input syntax for integer

Ini kenapa yah? Klo saya tambahin (int)$id_member itu warning nya ilang, tapi datanya ngga muncul..

Need help on pg_query plzzzz @_@

Thanks before ~

Pengaturan Privasi 10:45am Aug 24
kalo
$query = "SELECT * FROM A WHERE id_member=$id_member";

Robby Liaw 10:51am Aug 24
Error om : Warning: pg_query(): Query failed: ERROR: syntax error at end of input LINE 1

Nah aneh nya error ini cuma terjadi di localhost pc server saya (bkn hosting), tp klo di localhost pc pribadi saya lancar jaya @_@

Teguh Oktian 10:57am Aug 24
Mungkin masalah variable global.

Robby Liaw 11:00am Aug 24
Variable global? Apa tuh om? Gmn solusi nya ya?

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