Error - Could not get domain variables from database.

"; echo ("Error" . mysql_errno(). ":" . mysql_error()); echo ""; die(); }else{ ///////definte domain specific variables///////////////// $domrow = mysql_fetch_array($domresult); $headerimg=$domrow[headerimg]; $ucfirst=$domrow[ucfirst]; $lcboth=$domrow[lcboth]; $ucboth=$domrow[ucboth]; $combinedlc=$domrow[combinedlc]; $msm=$domrow[msm]; }///end else good domquery///////// //////////get the body variables////////////// /////////////////////////////get the domain variables////////////// $bodyquery="SELECT * FROM common WHERE page='testindex_db' "; if (!($bodyresult = mysql_query($bodyquery, $connection))){ echo "

Error - Could not get body variables from database.

"; echo ("Error" . mysql_errno(). ":" . mysql_error()); echo ""; die(); }else{ ///////definte domain specific variables///////////////// $bodyrow = mysql_fetch_array($bodyresult); if(ereg('cardealer|forecourt',$thisdom)){ $text1 = $bodyrow[text1_sf]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text3_sf]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5_sf]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7_sf]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9_sf]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11]; $text12 = $bodyrow[text12_sf]; $text13 = $bodyrow[text13]; $text14 = $bodyrow[text14_cd]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; $text18 = ""; }elseif(ereg('proportable',$thisdom)){ $text1 = $bodyrow[text1_sf]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text5_td]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7_sf]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9_sf]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11]; $text12 = $bodyrow[text12_sf]; $text13 = $bodyrow[text4_sf]; $text14 = $bodyrow[text14_cd]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; $text18 = ""; }elseif(ereg('extenda|portable|display|festival|event',$thisdom)){ $text1 = $bodyrow[text1_sf]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text5_td]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7_sf]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9_sf]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11]; $text12 = $bodyrow[text12_sf]; $text13 = $bodyrow[text13]; $text14 = $bodyrow[text14_cd]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; $text18 = ""; }elseif(ereg('sailflag',$thisdom)){ $text1 = $bodyrow[text1_all]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text3_all]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5_all]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7_sf]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9_sf]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11]; $text12 = $bodyrow[text12_sf]; $text13 = $bodyrow[text13]; $text14 = $bodyrow[text14_sf]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; ///$text18 = $bodyrow[text18]; $text18 = ""; }elseif(ereg('teardrop|flyingbanner',$thisdom)){ $text1 = $bodyrow[text1_td]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text3_td]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5_td]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7_td]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11_td]; $text12 = $bodyrow[text12_td]; $text13 = $bodyrow[text13]; $text14 = $bodyrow[text14_td]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; $text18 = ""; }else{ $text1 = $bodyrow[text1]; $text2 = $bodyrow[text2]; $text3 = $bodyrow[text3]; $text4 = $bodyrow[text4]; $text5 = $bodyrow[text5]; $text6 = $bodyrow[text6]; $text7 = $bodyrow[text7]; $text8 = $bodyrow[text8]; $text9 = $bodyrow[text9]; $text10 = $bodyrow[text10]; $text11 = $bodyrow[text11]; $text12 = $bodyrow[text12]; $text13 = $bodyrow[text13]; $text14 = $bodyrow[text14]; $text15 = $bodyrow[text15]; $text16 = $bodyrow[text16]; $text17 = $bodyrow[text17]; $text18 = ""; }//end ifelse }///end else good bodyquery///////// $plural = $lcboth."s"; $complural=$combinedlc."s"; $ucplural=$ucboth."s"; ///////////////////////// require '/home/flagadmin/includes.php'; require '/home/flagadmin/localsubs.php'; $success="

Thankyou for your enquiry.
One of our Sales Team will contact you shortly.
"; echo $header; //include '/home/flagadmin/ffnavbar_test.inc'; echo $navbar; echo "
"; include '/home/flagadmin/temphead.php'; echo $warning; //if ($success=="yes"){ //echo $success; //} $midblock= <<
$offer
$text2
$text14
$text4
$wunner
$text18

$text12 $text13 $text16 $text10

$text7 $text8 $text9
$text11
$text6
endmidblock; echo $midblock; echo $footer; //include '/home/flagadmin/footer10.inc'; echo ""; ?>