Variables between PHP blocks
-
Hi there,
I have a page to show some results of a test depending on GET variable.
In a PHP block, we receive GET variable and process all database queries and calculations. No problem here.
Below, in certain parts of the same page, I need to show values calculated in the first php block.
Something like
<?php echo “the result of some complex calculation is :”.$variable; ?>Where $variable is some of variables calculated in first php block.
However, it shows just the result of some complex calculation is :
Seems to php blocks doesn’t communicate each other. Is there a solution for that? ?any idea? ?Am i doing something wrong?
Thanks,
Luis
- The topic ‘Variables between PHP blocks’ is closed to new replies.