Posted by Alvaro G. Vicario on 12/06/64 11:51
*** frizzle escribió/wrote (27 Jun 2006 03:05:52 -0700):
> Somehow, i'm unable to get the variables inside Header() (/header.php)
> by calling NotPriviledged.
>
> How do i get them in there?
Check this:
http://es2.php.net/global
<?php
$a = 1;
$b = 2;
function Sum()
{
global $a, $b;
$b = $a + $b;
}
Sum();
echo $b;
?>
--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
[Back to original message]
|