How can i add a sql-query right into a function like
function show($userinfo) in online.php ?
E.g.:
*** $result=$DB_site->query_first("SELECT title FROM forum WHERE forumid=6");
should work, but brings up this error:
*** Call to a member function on a non-object in .../vbulletin/online.php on line 58
It works if i add it outside of the functions, but doesn't inside of one.
Any idea ?
|