Hi all,
Is the below if structure correct?? I want a query to be performed if any of the if statements are true.
Jus want to know if that's the correct format for multiple if statements. They will all perform the same query.
if(($class_start >= $date_start_db) && ($class_start <= $date_end_db))
if(($class_end > $date_start_db) && ($class_end <= $date_end_db))
if(($class_start <= $date_start_db) && ($class_end > $date_start_db))
{
// do query if any above if cases true
}