PHP Common Error Snippets

NB: mysql_connect deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0 Alternative: mysqli_connect()

Warning: mysql_select_db(): No such file or directory - $host = ‘localhost’; instead of localhost, use or if using shared hosting, replace with your mysql server hostname

Google Maps API error: MissingKeyMapError Arises when using the Google Maps API on localhost or your domain was not active prior to June 22nd, 2016,

  1. Get API key
  2. Change <script src=""></script> to <script src=""></script>

each free API key comes with a 25,000 map loads per project per day limit

How do I turn off PHP errors and warnings