Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created February 10, 2016 14:42
Show Gist options
  • Save chadhutchins/b27d386324c37172c4ad to your computer and use it in GitHub Desktop.
Save chadhutchins/b27d386324c37172c4ad to your computer and use it in GitHub Desktop.
<?php
global $db;
echo $db->dbType;
if ($db->dbType == ‘mysql’) echo “MySQL is being used”;
if ($db->dbType == ‘mssql’) echo “MSSQL is being used”;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment