Hey guys. I am getting this error when i load my page Parse error: syntax error, unexpected $end in /class.php on line 178
I tried to paste the page code but it was sort of about 93000 characters too long. all 178 is, is "?>" and here is the end of the php, 178 is the last line...
function site_configuration_upgrade($db) { $this->upgrade_array = array ( 0 => array("classifieds_ssl_url","ALTER TABLE ".$this->site_configuration_table." ADD classifieds_ssl_url TINYTEXT NOT NULL AFTER classifieds_url"), 1 => array("use_ssl_in_sell_process","ALTER TABLE ".$this->site_configuration_table." ADD use_ssl_in_sell_process TINYINT DEFAULT '0' NOT NULL AFTER classifieds_ssl_url"), 2 => array("registration_ssl_url","ALTER TABLE ".$this->site_configuration_table." ADD registration_ssl_url TINYTEXT NOT NULL AFTER registration_url"), 3 => array("use_ssl_in_registration","ALTER TABLE ".$this->site_configuration_table." ADD use_ssl_in_registration TINYINT DEFAULT '0' NOT NULL AFTER registration_ssl_url") );
reset($this->upgrade_array); $total_sql = count ($this->upgrade_array); for ($i = 0; $i < $total_sql;$i++) { $this->sql_query = "select ".$this->upgrade_array[$i][0]." from ".$this->site_configuration_table; $result = $db->Execute($this->sql_query); //echo $this->sql_query."<br>\n"; if (!$result) { $this->sql_query = $this->upgrade_array[$i][1]; $upgrade_result = $db->Execute($this->sql_query); //echo $this->sql_query."<br>\n"; if (!$upgrade_result) { return true; } } else break; } return true; } //end of function site_configuration_upgrade
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
} //end of class Site_configuration
?>