I am trying to get this to work right.
Code:
<if condition="$thread['forumid'] == 32"><div style="margin-top: 7px;"><a href="http://www.exposethemusic.com/forums/t$lyrics[threadid]/">$lyrics[title] Lyrics</a></div></if>
PHP Code:
if ($foruminfo['forumid'] == 32)
{
$lyrics = '';
$lyrics = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "thread WHERE forumid = 34 AND title = '" . $threadinfo['title'] . "'");
}
Using showthread_start query
If I use a print_r on $lyrics it spits out the array at the top of the page. So I know the query works.
print_r($lyrics['title']); spits out the correct title to.
What isn't working is when I use the variable in the template. It just shows up blank where the variable output is suppose to be.
Any idea why?