Your problem is the scope of print_table, take a look at the "global" function or $GLOBALS array.
Lauri Lüüs wrote:
No I need this like:
in page
colors.php3
$foregrownd="red";
$backround="blue";
etc..
but in index.php3 is like
include("colors.php3");
when I do not use classes I can use
echo "<table bgcolor='$foregrownd'>";
and table backround color is red
class table
{
function print_table()
{echo "<table backround='$foregrownd'>;//$foregrownd is empty 🙁
how to get into here foregrownd color?????}
}
is there any simple way to get outside classes any wariable so I do not need to create some variables import functions.
thanx...