I am trying to include a php file in my website.
But it seems that when you include the file you cannot pass variables at the same time.
i need to include a file and pass avariable to that file to get a perticular color for my table.
Can anybody help???
>V.php
<?php include("file.php?color=#00FF00"
?>
//writes the variable which is a table
<?=$table>
//gets the variable value and inputs it in the code and sends the new value of $table to the v.php
>file.php
<?php $table = '<table color="';.$color.'"><td><tr></tr></td></table>';
?>
But it seems that when you include the file you cannot pass variables at the same time.
i need to include a file and pass avariable to that file to get a perticular color for my table.
Can anybody help???
>V.php
<?php include("file.php?color=#00FF00"
?>
//writes the variable which is a table
<?=$table>
//gets the variable value and inputs it in the code and sends the new value of $table to the v.php
>file.php
<?php $table = '<table color="';.$color.'"><td><tr></tr></td></table>';
?>