Files
HotLunches/pplog.php
T
2026-10-19 15:22:52 -07:00

23 lines
828 B
PHP

<pre>
<?php
include "db.php";
$school_num = 435;
$query = "SELECT * FROM user_paypal_transactions WHERE school_num = $school_num AND posting_result = 'Pending' AND payment_type != 'instant' AND current_year != 'N'";
$transactions = db_query($query);
while ($row = db_fetch_assoc($transactions)) {
print_r($row);
$txn_id = $row['txn_id'];
$results = db_query("SELECT * FROM user_paypal_transactions WHERE school_num = $school_num AND txn_id = '$txn_id' AND posting_result != 'Pending'");
while ($row = db_fetch_assoc($results)) {
echo("------------------------------------------------------------------\n");
print_r($row);
}
echo("==================================================================\n");
echo("==================================================================\n");
}
?>
</pre>