2007-12-13 21:50:31 +00:00
|
|
|
<?
|
|
|
|
function db_update_81_post()
|
|
|
|
{
|
2024-12-11 00:40:23 +00:00
|
|
|
$q = $pdo->prepare("SELECT DISTINCT award_sponsors_id FROM award_contacts");
|
|
|
|
$q->execute();
|
|
|
|
while($i = m$q->fetch(PDO::FETCH_OBJ)) {
|
2007-12-13 21:50:31 +00:00
|
|
|
$asid = $i->award_sponsors_id;
|
2024-12-11 00:40:23 +00:00
|
|
|
$stmt = $pdo->prepare("UPDATE award_contacts SET `primary`='yes' WHERE award_sponsors_id='$asid' LIMIT 1");
|
|
|
|
$stmt->execute();
|
2007-12-13 21:50:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|