From 45f4581dc474f6d50555910bb4ea1ca6e8dd6a9c Mon Sep 17 00:00:00 2001 From: james Date: Thu, 12 Jan 2006 16:25:35 +0000 Subject: [PATCH] update 'fake data' scripts for 2006 --- scripts/assignprojectnumbers.php | 2 +- scripts/populate_fake.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/assignprojectnumbers.php b/scripts/assignprojectnumbers.php index f45a79b..654fc89 100644 --- a/scripts/assignprojectnumbers.php +++ b/scripts/assignprojectnumbers.php @@ -24,7 +24,7 @@ id; diff --git a/scripts/populate_fake.php b/scripts/populate_fake.php index 3962ece..7c0a1eb 100644 --- a/scripts/populate_fake.php +++ b/scripts/populate_fake.php @@ -55,7 +55,7 @@ for($x=0;$x<$numprojects;$x++) $pd=rand(1,$prob_unpaid); if($pd==1) $status='paymentpending'; else $status='complete'; - $q=mysql_query("INSERT INTO registrations (num,email,start,status,year) VALUES ('$regnum','$email',NOW(),'$status',2005)"); + $q=mysql_query("INSERT INTO registrations (num,email,start,status,year) VALUES ('$regnum','$email',NOW(),'$status',2006)"); if($id=mysql_insert_id()) { @@ -73,7 +73,7 @@ for($x=0;$x<$numprojects;$x++) $sexnum=rand(1,3); if($sexnum<3) $sex="male"; else $sex="female"; - mysql_query("INSERT INTO students (registrations_id,firstname,lastname,sex,grade,year,schools_id) VALUES ('$id','".getrand($firstnames)."','".getrand($lastnames)."','$sex','$grade',2005,'$schools_id')"); + mysql_query("INSERT INTO students (registrations_id,firstname,lastname,sex,grade,year,schools_id) VALUES ('$id','".getrand($firstnames)."','".getrand($lastnames)."','$sex','$grade',2006,'$schools_id')"); } @@ -87,7 +87,7 @@ for($x=0;$x<$numprojects;$x++) if($req_tnum==1) $req_t="no"; else $req_t="yes"; - mysql_query("INSERT INTO projects (registrations_id,projectcategories_id,projectdivisions_id,title,year,req_electricity,req_table) VALUES ('$id','$cat','$div','$title',2005,'$req_e','$req_t')"); + mysql_query("INSERT INTO projects (registrations_id,projectcategories_id,projectdivisions_id,title,year,req_electricity,req_table) VALUES ('$id','$cat','$div','$title',2006,'$req_e','$req_t')"); } }