0) $query = "select i.owner_id, c.site_title, c.metakeywords, c.metadescription from xcms_item i, xcms_content c where i.id = ".$search_cms['owner_id']." and c.cms_id = i.id and c.taal_id = ".$taal_id; else { $continu = false; $query = "select i.owner_id, c.site_title, c.metakeywords, c.metadescription from xcms_item i, xcms_content c where i.id = 1 and c.cms_id = i.id and c.taal_id = ".$taal_id; } $result = mysql_query($query); $search_cms = mysql_fetch_array($result); } $continu = true; $query = "select i.owner_id, c.image1, c.image2, c.image3 from xcms_item i, xcms_content c where i.id = ".$cms_id." and c.cms_id = i.id and c.taal_id = ".$taal_id; $result = mysql_query($query); $row = mysql_fetch_array($result); while ((empty($row['image1'])) and ($continu)) { if ($row['owner_id'] > 0) $query = "select i.owner_id, c.image1, c.image2, c.image3 from xcms_item i, xcms_content c where i.id = ".$row['owner_id']." and c.cms_id = i.id and c.taal_id = ".$taal_id; else { $continu = false; $query = "select i.owner_id, c.image1, c.image2, c.image3 from xcms_item i, xcms_content c where i.id = 1 and c.cms_id = i.id and c.taal_id = ".$taal_id; } $result = mysql_query($query); $row = mysql_fetch_array($result); } $image1 = $row['image1']; $image2 = $row['image2']; $image3 = $row['image3']; $query = "select image1, image2, image3 from xcms_content where cms_id = 1"; $result = mysql_query($query); $row = mysql_fetch_array($result); if (empty($image1)) $image1 = $row['image1']; if (empty($image2)) $image2 = $row['image2']; if (empty($image3)) $image3 = $row['image3']; ?> <?=$search_cms['site_title']?>
Schildersbedrijf Rodermond
Schildersbedrijf Rodermond