![]() |
printing the contents of a variable
ok, i have a variable in the index.php file, what do i have to do to print it on the index page?
|
You will need to add it to your forumhome template where ever you want it to display.
|
i know that, but what code do I have to add to the template?
|
Can't say without seeing it and having an idea of where you want it.
|
If you have something like $variable = 1; in your php file, then type $variable to display the 1.
|
Quote:
|
Maybe something is wrong with your script, because that is how you do it. :)
Could you post the section of code that creates the variable. |
PHP Code:
|
PHP Code:
|
...but remember to never do SELECT *. Only SELECT what you want to get from the database and nothing more.
|
All times are GMT. The time now is 06:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|