Dumb question no 1241
Posted: Thu Mar 10, 2005 3:52 pm
OK, so what's the syntax for an or statement after an if
This gives an error, no doubt I've done somthing wrong, someone please enlighten me!
As you can see I'm used to Spectrum BASIC and still getting to grips with the simpler commands in PHP.
Code: Select all
if ($ls==0) or ($years<13)
{
$grown=(($final*$growth)/100)+((($monthly*12)*$growth)/200);
}As you can see I'm used to Spectrum BASIC and still getting to grips with the simpler commands in PHP.