Hello. . .
Do any who know, how to make this code to work?
Problem in code is in counter. . . result is 0. . .
I dont know how to do make this code to work? Please help. . . And sorry for my bad English. . . thanks. . .
Do any who know, how to make this code to work?
Code:
//Function for count users function clubusers($clid) { $users = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='". $clid ."' AND accepted='1'")); return $users[0]; } // BBcode $text = preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is", "<div style='border-left:3px solid #777;'><a href='index.php?action=gocl&clid=$1&sid=$sid'>$2</a> <br /> <small> Club: ". clubusers("$1") ." peopls like this club", $text);
I dont know how to do make this code to work? Please help. . . And sorry for my bad English. . . thanks. . .
Comment