Re: global
- From: mark <mark@xxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 20:59:08 +0000 (UTC)
Thanks Andy, I was preparing a runable piece of code to post and came across the problem! I changed a variable name in an include file which was causing the problem. Need some sleep!
Cheers.
Andy Hassall wrote:
On Wed, 29 Jun 2005 20:35:18 +0000 (UTC), mark <mark@xxxxxxxxxxxxx> wrote:
$myvar = "test";
function myfunc() { global $myvar; echo $myvar; }
However, when echoing $myvar it is blank. Can anybody tell me what I am doing wrong?
Post a runnable piece of code that demonstrates the problem - the one you just posted does not call the function.
.
- References:
- global
- From: mark
- Re: global
- From: Andy Hassall
- global
- Prev by Date: Re: What does `Catalog`.item like '%A\-%' mean? -MySQL?
- Next by Date: Re: Ebay listings using front page
- Previous by thread: Re: global
- Next by thread: Easy question
- Index(es):
Relevant Pages
|