![]() |
Dealing With Conditions Errors Without a Condition?
So I assume I am going to learn something new today with vBulletin. I have a plugin that runs this wonderful query.
PHP Code:
PHP Code:
PHP Code:
Quote:
I could put this on line 1 or line 51 no matter what or any other part of that $ppv array that I try to insert and it gives errors gallore. So I guess my question is what in vBulletin or programming mechanics could cause this when there is no if statement in there and why would it only sound off the alarms for certain parts of the array even though all data type of that array are the same. |
Try:
Code:
{$ppv[1_wrestler1]} |
You must enclose the key in double quotes if it starts with an integer or you will get a parse error.
|
Quote:
|
$ppv["1_wrestler1"]
|
That gives you this:
Quote:
|
That will not work in a template (quoting, I mean). Assign that value to another variable, and use that instead.
|
All times are GMT. The time now is 10:52 AM. |
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:
|