I have several update statements that need to be run upon submit being clicked. I can run a single update but I am struggling to figure out how to run all of them prior to refreshing the page. Here is what I have tried but I am getting an error on my closing of the connection which did not occur when running a single statement.
if ($conn->query($usqlMC)  == True) {
if ($conn->query($usqlSCn)  == True) {
    if ($conn->query($usqlSCv)  == True) {
        if ($conn->query($usqlTn)  == True) {
            if ($conn->query($usqlTurl)  == True) {
                if ($conn->query($usqlTv)  == True) {
                    header("location: http://localhost/phpkiosk/mc1.php");
                } 
            }
        }
    }
}
}
I am sure this is completely wrong so any suggestions on how to fix this would be greatly appreciated. Thanks!!!
ADDED ERROR MESSAGE
Parse error: syntax error, unexpected end of file in C:\wamp2\www\phpKiosk\mc1.php on line 1196
Again I receive no error when I run:
if ($conn->query($usqlMC)  == True) {
    header("location: http://localhost/phpkiosk/mc1.php");
}
WORKING SOLUTION
using Chris85's suggestion I was able to get this to work:
if ($conn->query($usqlMC) === TRUE && 
   $conn->query($usqlSCn) ===TRUE &&
   $conn->query($usqlSCv) ===TRUE &&
   $conn->query($usqlTn) ===TRUE &&
   $conn->query($usqlTurl) ===TRUE &&
   $conn->query($usqlTv) ===TRUE) {
   header("location: http://localhost/phpkiosk/mc1.php");
   } 
}
 
    