it makes me sad that i can't solve this, but i just can't seem to find the info i need. tried stuff, but doesn't work.
i got a php doc called: stats.php with these vars in it, nothing more is in it >
<php?
$stat1="0";
$stat2="50";
?>
then, i wan't to display those vars in some html doc. ill use the example below:
you have got $stat1 balls but you still got $stat2 beevers!
i want the html doc to go get the stat vars in "stats.php". untill now i got:
<?php
include('stats.php');
echo "you have got " . $stat1 . " balls but you still got " . $stat2 . " beevers!";
?>
but Zend tells me:
Global variable $stat1 was used before it was defined (line 3)
Global variable $stat2 was used before it was defined (line 3)
i will prolly hit myself on the head when this is solved. any help is welcome, thanks.
btw: hello to all.