MySQL Errors

Object Oriented Style Turn on error reporting Displaying error with ->prepare() sql statement There is an issue with this in that you need to first use $stmt=False; if using $stmt again, otherwise $maindb->error will be empty. Explanation here: Procedural┬áStyle Displaying A MySQL Error die(mysql_error()) is very handy when debugging why a MySQL function isn’t […]

Read More