<?php 
// Load footer address/contact text
$res_footer = mysql_query("Select * From tbltext WHERE page='address'");
$footer = ($res_footer && mysql_num_rows($res_footer) > 0) ? mysql_fetch_array($res_footer) : array();

// Load footer copyright headline text (editable from admin)
$res_copy = mysql_query("Select * From tbltext WHERE page='footer_copyright'");
$footer_copy = ($res_copy && mysql_num_rows($res_copy) > 0) ? mysql_fetch_array($res_copy) : array();
$copyright_text = (isset($footer_copy['detail']) && !empty($footer_copy['detail'])) 
    ? $footer_copy['detail'] 
    : 'រក្សាសិទ្ធិគ្រប់យ៉ាងនៅឆ្នាំ ២០១៣ ដោយ LoveWedding';
?>
<div class="clear" style="height: 0px;"></div>
<div id="footer">
	<div id="footer_left">
		<?php echo $copyright_text; ?><br />
		<?php echo isset($footer['detail']) ? $footer['detail'] : ''; ?>
	</div>	
	<div id="footer_right">
	          រចនាដោយ  &nbsp;&nbsp;<span><a href="http://www.thecita.net" target="_blank">CITA</a></span> 
	   <div class="clear" style="height: 15px;"></div> 
	   <b>Advertise with us</b>
	</div>
	
</div>