Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block Mutungi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PrintConfig.js
function printPage() {
if(document.all) { = 'hidden';
window.print(); = 'visible';
else {
document.getElementById('divButtons').style.visibility = 'hidden';
document.getElementById('divButtons').style.visibility = 'visible';
Mutungi / export_csv.php
Created Sep 25, 2017 — forked from apocratus/export_csv.php
Export MySQL to CSV (php script)
View export_csv.php
/* vars for export */
// database record to be exported
$db_record = 'XXXXXXXXX';
// optional where query
$where = 'WHERE 1 ORDER BY 1';
// filename for export
$csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv';
// database variables
You can’t perform that action at this time.