<?php
// Database connection parameters
$host = 'localhost:3306';
$dbname = 'billing';
$username = 'root';
$password = '';

// Create a PDO database connection
$pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);

// Set PDO error mode to exception
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

// Continue with your API logic

?>
