query($sql); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); } if(!empty($_GET['authId'])) { $actionPage='updates.php'; }else{ $actionPage='submit.php'; } ?>