![]() |
Question about variables stored in a db
Hi,
I have this script which calls html codes from a database: PHP Code:
HTML Code:
<html> PHP Code:
Now to the problem: The two variables that are stored in the plugin_frontpage table wont be replaced with the content in the plugin_frontpage_news table. The html codes work just fine, but the varibles are just being printed as they are, not with its content. What am I doing wrong? I know its possible, vBulletin works the same way. All templates contains variables. Thanks in advance! Niklas |
Hi,
You will probably want to use some vBulletin's database object as well as template system - it will make things much easier. You are actually looking to append the data, rather than replace it each time. In my below example I use .= instead of = to add it to the end of the variable. PHP Code:
|
actually, this isnt for vBulletin. Thanks a lot for replying.
Niklas |
PHP Code:
|
All times are GMT. The time now is 12:07 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:
|