I am coding a message board and i have made the template system and everything.

When I go to call the templates, i put the variables in them.

So that when I use this code:

$topicname=$topic['TopicName'];
templates(viewthread_head_subject);

It should print

table here Topic Name table here

see: http://www.agent-penguin.net/penguinbb0.1/test/test.php?topicID=2

I have a feeling I am doing something very wrong. Please tell me what it is I need to do to make the mysql results print out the variable.

    Need a lot more information than this to help you.

    It appears teh $topicname variable is not being printed with PHP, but with simple html. You need to make sure you enclose it in <?php ?> tags and use an echo or print command to have the value printed instead of the literal name.

      Write a Reply...