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
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
l 24, 2001 11:54 AM
> To: PHP General
> Subject: [PHP] A simple problem!
>
>
> Can You figure out the mistake here...??
>
> In the following code... In the function print_entry which I
> am calling in some other file, I want each entry to printed
> in a different col
Can You figure out the mistake here...??
In the following code... In the function print_entry which I am calling in some other
file, I want each entry to printed in a different colour.
$colour = array("808080","80","FF00FF","FF","008080");
$colouroffset=0;
function print_entry($row,$p
4 matches
Mail list logo