2007-12-13 21:50:31 +00:00
|
|
|
<?
|
2025-01-29 03:30:48 +00:00
|
|
|
function db_update_81_post()
|
2007-12-13 21:50:31 +00:00
|
|
|
{
|
2025-01-29 03:30:48 +00:00
|
|
|
$q = $pdo->prepare('SELECT DISTINCT award_sponsors_id FROM award_contacts');
|
2024-12-10 19:40:23 -05:00
|
|
|
$q->execute();
|
2025-01-29 03:30:48 +00:00
|
|
|
while ($i = $q->fetch(PDO::FETCH_OBJ)) {
|
2007-12-13 21:50:31 +00:00
|
|
|
$asid = $i->award_sponsors_id;
|
2025-02-09 17:24:37 +00:00
|
|
|
$stmt = $pdo->prepare("UPDATE award_contacts SET `primary`='yes' WHERE award_sponsors_id=? LIMIT 1");
|
|
|
|
$stmt->execute([$asid]);
|
2007-12-13 21:50:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|