Jump to content

Why do Multiple Operators in an If Statement should Give an Error ?


vincej

Recommended Posts

I'm using the following code. I have tried placing parenthesis around $date1 and $date2 to separate them. No matter where I place the parenthesis  Dreamweaver keeps giving me a syntax error. If I remove the second operator $date2 with the && the error goes.

 

checked all my books but I can't see what is probably a stupid error !

 

if ($row_sales_shipping_tax['cdate']  >= $date1 && <=$date2 )

 

Thanks for the help !

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.