<?php # Connect to database $conn = new mysqli("localhost", "ComedoresEscolares", "1234"); $conn->select_db("ComedoresEscolar"); # Checks connection if($conn->connect_error){ header("500 Internal Server Error", true, 500); exit(); } ?>