How do I display a MySQL error in PHP for a long query that depends on the user input? [duplicate] December 25, 2023 by Tarik