- mysqli_connect()
- mysqli_query()
- mysqli_error()
- mysqli_num_rows()
- mysqli_fetch_assoc()
- WHERE id LIKE ‘%$search%’ – FUZZY search
How to select the last RECOD in MySQL
SELECT * FROM `table_name` WHERE id=(SELECT MAX(id) FROM `table_name`);
// or this code
SELECT * FROM `table_name` ORDER BY id DESC LIMIT 1;