The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with this code
When I insert
Code:
$customrowbanner = $db->query_read("SELECT id,banner_text FROM " . TABLE_PREFIX . "banner WHERE groupid=$foruminfo[forumid] ORDER RAND()"); $id=$customrowbanner['id']; $text=$customrowbanner['banner_text']; eval('$custombanner = "' . fetch_template('custombanner') . '";'); } else { $custombanner = ""; } Parse error: parse error, unexpected '}' Any ideas on how to write this to avoid this error message? Thanks, Parker |
#2
|
||||
|
||||
This is kinda out of place I think
PHP Code:
|
#3
|
|||
|
|||
I am sorry but I really don't know what you are referring to here. Can you give me an example of what you are talking about? I am way to new at PHP.
Thanks |
#4
|
|||
|
|||
You have an Else clause but no If clause (which is needed), did you write this code or did you copy and paste it?
The syntax should look something like this: PHP Code:
|
#5
|
|||
|
|||
Sorry about that. I figured it out.
Thanks anyway. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|