First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?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");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user