Pass parameter with include_php
| From: | Simone | Date: | Wed, 02 Oct 2002 09:48:14 +0000 |
| Subject: | Pass parameter with include_php | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6075@lists.php.net to get a copy of this message | ||
I have to read from a php file (my_file.php) a parameters passed from a .tpl
file and I require the file from the .tpl file with the string
{include_php file=my_file.php}
Suppose that in my php file I have to query the DB with a select like :
Select *
from Tab_A
where field_X = my_parameter
and suppose that I have to get the my_parameter value from the template.
How can I do that ?
Simone