![]() |
if else statement
Can anyone please tell me why this code can't pass template check? Thanks!
PHP Code:
|
What is a "template check". And what template are you putting that in?
|
Thanks for your reply. I added it to MEMBERINFO, when I saved the template, it gave me an error message - possibly incorrect if statement.
The following code works well: PHP Code:
PHP Code:
|
The problem is the line with $userinfo['field6'] (not the one in the condition). I think it follows the same rules as php parsed strings, so you can either use $userinfo[field6] or {$userinfo['field6']}
|
Yes, it's fixed the error. Thank you so much!!
|
All times are GMT. The time now is 01:21 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:
|