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/ | |
 | LSAT prep from HLS-educated instructors
LSATMax includes video lessons, unlimited personal attention & support, and over 6,000 real questions from previous LSAT's. Enroll for just $299.  | From our sponsors | | |
Apa ya salah ne pren PHP ? :/ ( buatlah ane tersen... Nov 2nd 2013, 14:56, by Kohart | Apa ya salah ne pren PHP ? :/ ( buatlah ane tersenyum lagi :) )
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\www\noke\includes\clsOnlineUsers.php on line 165
************* function getUsersOnline() { $this->db = mysql_select_db($this->dbname, $this->conn); // Get number of users online $SQL = "SELECT count(ip) FROM ".$this->tablename; $result = mysql_query($SQL); $RS = mysql_fetch_row($result); // <---------- line 165 $this->totalusers = $RS[0]; return $RS[0]; } ********************************
. |
| | count(ip) dirubah jd count(*)
itu jg kalo ga salah. hehehe |
| | Mungkin gak ada nama tabelnya. $this->tablename; |
| | tambahin "order by [nama_field]" kakah di sqlnya.. ^_^ | | |
|
Tidak ada komentar:
Posting Komentar