Quote:
Originally Posted by jgrietveld
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. 
|
When you say you're developing a front page, what are you doing exactly? Are you making a template? If so then yeah, you can't put php code in a template. The vbulletin way to do it is to write code in a plugin (or create your own page by writing a php file), then use templates to produce the output.