Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
When writing a php script into phplugins, comparison operators are giving me fits. I have tried escaping them to no avail. As an example, if I write something such as -
<?php if ($pageNum_Names_Pics > 0) { ?>
comparing to see if $pageNum_Names_Pics is greater than zero
the "greater than" comparison closes the "<?php" bracket before getting to the "{ ?>" portion of the evaluation. Escaping the "greater than" comparison as "\>" does not work either.
Need some help on making comparisons with php within phplugins..........
Offline
are you using a plain text editor for this? Because it looks like what you're doing should work fine.
http://php.net/manual/en/language.opera … arison.php
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I'm wondering if the variable $pageNum_Names_Pics is visible inside your php function?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
I was wondering if the variable had been declared too. Are you comparing any other variables? Does this happen with everything you're comparing?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Playing with a test gallery to try to get things working - using Notepad++
No - doesn't appear that variables were declared - my attempt at placing into the head_end function has all of my php code appearing as comments (at least judging by the color code - green). The php is therefore not running, just being printed into the head and ignored.
Back to the drawing board again........
Thanks for the help. I'll be back later I'm sure. ![]()
Offline
Pages: 1