upgradasaurus2.7.php File Reference

Upgrades a 2.6 install to 2.7. More...


Variables

 $link = getdb()
 exit
Print Connected< BR > print
Adding materials to table 
homes
 $querystring = "ALTER TABLE ".$table_prefix."homes ADD (notes TEXT, agentemail VARCHAR (30), owner int, numfloors VARCHAR (30), yearbuilt int, sqfeet int, lotsize VARCHAR (30), garagesize VARCHAR (30), proptax int, country VARCHAR (30), virtualtour VARCHAR (60) );"
print $querystring
print< BR > $result = mysql_query("$querystring")
print Created table in $db< BR >
print Updating the database
with Tom Anderson Balcony
Patio Deck Waterfront Dishwasher
Disposal Gas Range Microwave
Washer Dryer Carpeted Floors
Hardwood Floors Air Conditioning
Alarm Cable Satellite TV Fireplace
Wheelchair Access Fitness
Center Golf Course Pool Spa
Jacuzzi Sports Complex Tennis
Courts Bike Paths Boating
Courtyard Playground Park
Association Fee Clubhouse
Controlled Access Public Transportation
s where the real work begins
have to translate Jon s 
$querystring = "select id,air,alrm,bcny,cbl,crp,dw,dsp,fire,gas,hdwd,mw,onw,pto,wadr,wc,fee,bp,boat,clb,gtd,crt,fit,ong,pw,pool,pt,spa,spo,tns from ".$table_prefix."homes"
 $result = mysql_query("$querystring")
 $query = mysql_query($querystring,$link)
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring = ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]', '$update[features_key]')")
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $update = mysql_fetch_array($update_query)
 $querystring
 $sql = "alter table ".$table_prefix."homes drop column tns;"
 $sql = "alter table ".$table_prefix."homes drop column air;"
 $sql = "alter table ".$table_prefix."homes drop column alrm;"
 $sql = "alter table ".$table_prefix."homes drop column bcny;"
 $sql = "alter table ".$table_prefix."homes drop column cbl;"
 $sql = "alter table ".$table_prefix."homes drop column crp;"
 $sql = "alter table ".$table_prefix."homes drop column dw;"
 $sql = "alter table ".$table_prefix."homes drop column dsp;"
 $sql = "alter table ".$table_prefix."homes drop column fire;"
 $sql = "alter table ".$table_prefix."homes drop column gas;"
 $sql = "alter table ".$table_prefix."homes drop column hdwd;"
 $sql = "alter table ".$table_prefix."homes drop column mw;"
 $sql = "alter table ".$table_prefix."homes drop column onw;"
 $sql = "alter table ".$table_prefix."homes drop column pto;"
 $sql = "alter table ".$table_prefix."homes drop column wadr;"
 $sql = "alter table ".$table_prefix."homes drop column wc;"
 $sql = "alter table ".$table_prefix."homes drop column fee;"
 $sql = "alter table ".$table_prefix."homes drop column bp;"
 $sql = "alter table ".$table_prefix."homes drop column boat;"
 $sql = "alter table ".$table_prefix."homes drop column clb;"
 $sql = "alter table ".$table_prefix."homes drop column gtd;"
 $sql = "alter table ".$table_prefix."homes drop column crt;"
 $sql = "alter table ".$table_prefix."homes drop column fit;"
 $sql = "alter table ".$table_prefix."homes drop column ong;"
 $sql = "alter table ".$table_prefix."homes drop column pw;"
 $sql = "alter table ".$table_prefix."homes drop column pool;"
 $sql = "alter table ".$table_prefix."homes drop column pt;"
 $sql = "alter table ".$table_prefix."homes drop column spa;"
 $sql = " alter table ".$table_prefix."tbl_Files add column (thumb longblob, thumb_size varchar(50), thumb_filetype varchar(50));"
 $sql = " alter table ".$table_prefix."agent_tbl_Files add column (thumb longblob, thumb_size varchar(50), thumb_filetype varchar(50));"
print< P >< B > Installation
Succeeded</b >< P > Print<
ahref=\"../\"> Load 
OpenRealty</a >


Detailed Description

This file incorporates all of Toma's changes into the database without requiring a reinstall and without deleting the data currently populating the database

Variable Documentation

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")

$querystring

Initial value:

 ("insert into ".$table_prefix."homes_features (ref_homes, ref_features) values ('$a_row[id]',
 '$update[features_key]')")


Generated on Sat Mar 3 12:47:10 2007 for FreeRealty Real Estate Listing Scripts by  doxygen 1.4.7