which one of the following is the proper way to perform multiple queries? These queries are on the same table (but they need to be different because of SUM function on different conditions)
$var1=($db->query($query1))->fetch(); $var2=($db->query($query2))->fetch(); $var3=($db->query($query3))->fetch(); $temp=$db->query($query1); $var1 =$temp->fetch(); $temp=$db->query($query2); $var2 =$temp->fetch(); $temp=$db->query($query3); $var3 =$temp->fetch(); $vars1=$db->query($query1); $var1 =$vars1->fetch(); $vars2=$db->query($query2); $var2 =$vars2->fetch(); $vars3=$db->query($query3); $var3 =$vars3->fetch(); If they are the same, as I suppose, can it happen that only the third works with some specific PHP configuration?
Thank you in advance
Davide