Hello!
I'm developing a front page for a vbulletin powered forum. On the front page I mention the main Forum titles and their sub-forums. I do not wish to hardcode the titles so the webmaster can change this when needed.
So I want to perform a MySQL query to retrieve the Forum titles:
Code:
$results = $db->query_read("SELECT title FROM forum WHERE forumid = 1");
This is fine I guess, although, this code is printed as is on the site. Adding <?php and ?> doesn't help either.
Also, I need to echo the contents of the
variable. But how? What's the way to echo variables in vBulletin?
Thanks for your help!!
Jerry