<?php
$pdo = new PDO("mysql:host=localhost;dbname=bismitri_admin_panel;charset=utf8mb4","root",""
);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
$id = $pdo->query("SELECT id FROM invoices LIMIT 1")->fetchColumn();
echo $id ?: "NO_INVOICE";
