Skip to content

Instantly share code, notes, and snippets.

@davialexandre
Created November 2, 2016 13:59
Show Gist options
  • Save davialexandre/eefa85402c9c412cf349be61d00a4fce to your computer and use it in GitHub Desktop.
Save davialexandre/eefa85402c9c412cf349be61d00a4fce to your computer and use it in GitHub Desktop.
<?php
CRM_HRCore_Helpers_Database::printSQLResult('SELECT id, display_name, contact_type FROM civicrm_contact');
// Prints something like:
// | id | display_name | contact_type |
// ------------------------------------
// | 1 | S.H.I.E.L.D | Organization |
// | 2 | Nick Fury | Individual |
// | 3 | Steve Rogers | Individual |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment