[Solved] If statement query
Posted: Sun Apr 02, 2006 4:08 am
Hi,
Can anyone tell me what I’m doing wrong with this bit of code? I need to run an if statement to check if the numeric value is either 29 or 30 but I keep getting various errors no matter what I try.
This is my latest attempt
Thanks very much
B
Can anyone tell me what I’m doing wrong with this bit of code? I need to run an if statement to check if the numeric value is either 29 or 30 but I keep getting various errors no matter what I try.
This is my latest attempt
Code: Select all
<? if ($productId == 29) { ?>
onclick="newWindow()">
<?}else{
if ($productId == 30 ) { ?>
onclick="newWindow()">
<? } else {'>';}?>B