thendal
Programmer
- Aug 23, 2000
- 284
Hi all!
What wrong with this code ,
Its giving a error
if($k == 1)
{
$value="y";
if($value eq "y"
{
$selected1='selected';
}
else
{
$selected1='';
}
}
print $selected;
Its giving an error
unmatched right bracket at line 13,at end of line syntax error at line 13, near "}"
Execution aborted due to compilation errors
but when i look into the program I didn't see any syntax error over the code ,
Or we can't have if else loop inside a if loop .( i don't think so)
please help me to get rid of this error ,

Thendal
What wrong with this code ,
Its giving a error
if($k == 1)
{
$value="y";
if($value eq "y"
{
$selected1='selected';
}
else
{
$selected1='';
}
}
print $selected;
Its giving an error
unmatched right bracket at line 13,at end of line syntax error at line 13, near "}"
Execution aborted due to compilation errors
but when i look into the program I didn't see any syntax error over the code ,
Or we can't have if else loop inside a if loop .( i don't think so)
please help me to get rid of this error ,
Thendal