From: Steve Sutton Date: Mon, 7 Jan 2019 17:46:50 +0000 (-0500) Subject: add invoice types first X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=503d02641180f8834af893f3181aebb60935d06a;p=WP-Plugins%2Fglm-member-db-billing.git add invoice types first --- diff --git a/models/admin/management/importAccounts.php b/models/admin/management/importAccounts.php index 24b0764..858da6e 100644 --- a/models/admin/management/importAccounts.php +++ b/models/admin/management/importAccounts.php @@ -114,17 +114,17 @@ if ( isset( $_REQUEST['start'] ) && $start = filter_var( $_REQUEST['start'], FIL $importResults = ''; // Get all payment types here. -// $sql = " -// SELECT * -// FROM members.payment_types -// ORDER BY id"; -// -// $paymentTypes = $dbh->query( $sql )->fetchAll(); -// foreach ( $paymentTypes as $pType ) { -// $pid = addPaymentType( $this->wpdb, $pType ); -// $importResults .= '
$pid: ' . print_r( $pid, true ) . '
'; -// } -// $importResults .= '
$paymentTypes: ' . print_r( $paymentTypes, true ) . '
'; +$sql = " +SELECT * + FROM members.payment_types +ORDER BY id"; + +$paymentTypes = $dbh->query( $sql )->fetchAll(); +foreach ( $paymentTypes as $pType ) { + $pid = addPaymentType( $this->wpdb, $pType ); + $importResults .= '
$pid: ' . print_r( $pid, true ) . '
'; +} +$importResults .= '
$paymentTypes: ' . print_r( $paymentTypes, true ) . '
'; // Get total number of members. $sql = "