Re: [PHP] A simple problem!

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 11:24:26PM +0530, Subodh Gupta wrote: > Can You figure out the mistake here...?? > > print << \n > color="#$colour[$colouroffset]">$name:\n // The problem is here.. >the value of $colour[$colouroffset] is not align=left>$dbvalue\n

Re: [PHP] A simple problem!

2001-04-24 Thread Chris Lee
your variable scope is local not the function function name() { global $variable; } -- Chris Lee [EMAIL PROTECTED] ""Subodh Gupta"" <[EMAIL PROTECTED]> wrote in message 002b01c0cce9$aa670b60$c834d6d2@subodhgu">news:002b01c0cce9$aa670b60$c834d6d2@subodhgu... Can You figure out the mi

RE: [PHP] A simple problem!

2001-04-24 Thread Johnson, Kirk
Since $colour is assigned outside the function, it is in the global scope. Add the line "global $colour;" to the function to use $colour in the function's local scope. Kirk > -Original Message- > From: Subodh Gupta [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 24, 2001 11:54 AM > To: