Minggu, 25 Agustus 2013

PHP Indonesia - Facebook: [ask] tolong bantuan nya dong agan" di sini Warnin...

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/ 
[ask] tolong bantuan nya dong agan" di sini Warnin...
Aug 26th 2013, 01:58, by Josafat

Josafat 1:58am Aug 26
[ask]
tolong bantuan nya dong agan" di sini
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/sparta/public_html/test.php on line 9
http://pastebin.com/vEDaSE1B

Faisal Rahmat 2:01am Aug 26
mungkin dibikin kaya gini ya:
mysql_query("SELECT * FROM table user WHERE userid = '".$userid."' AND psw='".$psw."'");

kali aja mau... masih nubie ^_^

Mas Riyanto 2:04am Aug 26
Nama tabelnya apa? "table user", "table_user" ato "user" aja?
Mungkin query gini...

SELECT * FROM user .......................

Josafat 2:04am Aug 26
tetep gan Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/sparta/public_html/test.php on line 9

Josafat 2:07am Aug 26
nama tabel ny table user gan

Mas Riyanto 2:08am Aug 26
pake spasi gitu? penamaan table jangan pake spasi gan..

Josafat 2:09am Aug 26
gk pke spasi gan ? , jadi gini tableuser ?

Mas Riyanto 2:12am Aug 26
ya, bisa digandeng jadi "tableuser" ato gini juga bisa "table_user". Silakan agan cari2 lagi referensinya...

Cahya Dsn 2:12am Aug 26
//..
mysql_query("SELECT * FROM `table user` WHERE userid = '$userid' AND psw='$psw'");
//..

?

Josafat 2:16am Aug 26
tetep gan bolean bolean mulu nih

Mochammad Fuad Sofyan 2:22am Aug 26
coba d cek gini mysql_query("SELECT * FROM table user WHERE userid = '$userid' AND psw='$psw'") or die ('Error :'.mysql_error());

Mas Riyanto 2:23am Aug 26
ane nglihatnya kok agan gak konsisten ya?
query yg pertama nama tabelnya "table user":
SELECT * FROM table user WHERE userid = '$userid' AND psw='$psw'

Tapi utk query simpannya, nama table nya "userid":
INSERT INTO userid(userid, psw, level, durasi, date, userid) VALUES('$userid','$psw','$level','$durasi','$date')

So, nama tabelnya apa???

Cahya Dsn 2:23am Aug 26
bedakan antara `(apostrop) dan ' (petik tunggal), utk nama tabel memakai `(apostrop) sedangkan utk string memakai ' (petik tunggal)

)* `(apostrop) biasanya ada di sebelah kiri tombol angka 1

Muhammad Nashir 2:42am Aug 26
.
if (!$cekuserid) {
die('Pertanyaan ini akan sangat sangat sangat masih ambigu jika tidak ada statement ini' . mysql_error());
}

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