Just wondering. Say I have this in a php page
<?php
if x {
$query = mysql_query(etc)
}else{
$query2 = mysql_query(etc)
}
?>
Lets say X = true then $query is executed, but is $query2 completely ignored? (so also not executed in the background?)
Thanks
anything within the “else” bracket will not be executed unless the condition is false. Not even “in the background”. PHP will completely ignore it as if it didn’t exist.