26 lines
623 B
PHP
26 lines
623 B
PHP
<?php
|
|
|
|
include "db.php";
|
|
include "table.php";
|
|
|
|
$table = new Table("user_paypal_transactions");
|
|
|
|
db_query("USE hotlunch_2015_05");
|
|
|
|
$query = "SELECT * FROM user_paypal_transactions WHERE payment_status = 'Completed'";
|
|
$trx = db_query($query);
|
|
|
|
while ($row = db_fetch_assoc($trx)) {
|
|
$rnum = $row['record_num'];
|
|
db_query("USE hotlunch");
|
|
$results = db_query("SELECT * FROM user_paypal_transactions WHERE record_num = $rnum");
|
|
if (db_num_rows($results) == 0) {
|
|
$row['current_year'] = 'N';
|
|
$query = $table->BuildInsert($row,'Yes');
|
|
db_query($query);
|
|
}
|
|
db_query("USE hotlunch_2015_05");
|
|
}
|
|
|
|
?>
|