PHP
AI-enhanced title
phpif ($_SERVER["REQUEST_METHOD"] == "POST") { $connection = new mysqli('localhost', 'root', '', 'sports_cars_db');
if ($connection->connect_error) { die("Connection failed: " . $connection->connect_error); }