forked from science-ation/science-ation
17 lines
447 B
PHP
17 lines
447 B
PHP
<?
|
|
function db_update_191_pre()
|
|
{
|
|
//before we do this, make sure we set the configuration variables based on the conferences.
|
|
$q=mysql_query("SELECT * FROM conferences WHERE type='sciencefair' AND year>0");
|
|
while($r=mysql_fetch_object($q)) {
|
|
echo " Updating dates for year={$r->year} to conferences_id={$r->id}\n";
|
|
mysql_query("UPDATE dates SET conferences_id='$r->id' WHERE year='$r->year'");
|
|
}
|
|
}
|
|
|
|
function db_update_191_post()
|
|
{
|
|
}
|
|
|
|
?>
|