Hello, I’ve been having this error with my code and i’ve literally been struggling with it relentlessly for the past couple of hours and i just can’t see it. My experiences so far with php have been, “You’re missing a simple period here on line 43,” and I just can’t see this error for the life of me. I just need someone to push me in the right direction at the very least, any help is appreciated and even if you don’t know a push in the right direction is welcomed.
index.php
[php]
$firstName
"; } function display_company_address(){ global $company_name,$company_address,$company_citystatezip; print "$company_name,$company_address,$company_citystatezip"; } */create array for a Real Estate Web site
/*************************** Function Declaration ********************/
print $companyobject->getHeader($company_name,$color);
$companyobject->create_array_carpet();
$companyobject->displayProduct($carpet_array);
print $companyobject->getFooter($color);
if($debug==true){
print “Lab 3 successful!”;
}
?>
Debug OFF Debug ON [/php] Company.php [php] <?php class Company{ var $company_name = "Billy May's Carpets"; var $company_address = "25309 Ave Ronada "; var $company_citystatezip = "Valencia California, 91355"; function getHeader($company_name,$color){ $color .= "$this->company_name
"; $color = $color . ""; return $color; } function getFooter($color){ $color .= "$this->company_name,$this->company_address,$this->company_citystatezip
"; $color = $color . ""; return $color; } function displayProduct($array){ for($i=0;$i<count($array);$i++){ print "$array[$i]"; print ""; } function create_array_carpet ( ) { global $carpet_array; $carpet_array = array(); $carpet_array[] = "ID: MLS123, Carpet: Brown, $650000.00, per 15 feet of carpet" ; $carpet_array[] = "ID: MLS456, Carpet: Blue, $199950.00, per 15 feet of carpet" ; $carpet_array[] = "ID: MLS789, Carpet: Green, $799950.00, per 15 feet of carpet" ; $carpet_array[] = "ID: MLS654, Carpet: Black, $599900.00, per 15 feet of carpet" ; } } ?> [/php]