Skip to content

Instantly share code, notes, and snippets.

Mutungi

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
@Mutungi
Mutungi / export_csv.php
Created Sep 25, 2017 — forked from apocratus/export_csv.php
Export MySQL to CSV (php script)
View export_csv.php
<?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
View PrintConfig.js
function printPage() {
if(document.all) {
document.all.divButtons.style.visibility = 'hidden';
window.print();
document.all.divButtons.style.visibility = 'visible';
}
else {
document.getElementById('divButtons').style.visibility = 'hidden';
window.print();
document.getElementById('divButtons').style.visibility = 'visible';
You can’t perform that action at this time.