query($sqla); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $nsecret=$row["secret"]; } } ?>