I have a variety of PHP scripts that use the mysqli suite of functions to access a database. I have wrote these scripts to handle the various error conditions (e.g. mysqli_stmt_execute returning false).
Is there a simple way of faking these error conditions to verifty that the output received by the user is approproiate for these conditions?