Only threw error when the database is not configured
mysql function i'll be eliminated from PHP in the future.