let's say there is a database called "db" and a table called "tb" and with some records in it. first column is "ID" which is "auto increment". i want to get the last record's ID to a php page.(i have already created the connection to the db)
$conn = new mysqli($servername, $username, $password, $dbname);