71 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			71 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
|   | <?php  | ||
|  | // Initialize variables with default values
 | ||
|  | $small_heading_EN = ''; | ||
|  | $small_heading_CN = ''; | ||
|  | $large_heading_EN = ''; | ||
|  | $large_heading_CN = ''; | ||
|  | $btn_text_EN = ''; | ||
|  | $btn_text_CN = ''; | ||
|  | $btn_link = ''; | ||
|  | $long_description_EN = ''; | ||
|  | $long_description_CN = ''; | ||
|  | 
 | ||
|  | 
 | ||
|  |      | ||
|  |     $query = "SELECT * FROM cta_form_data LIMIT 1"; | ||
|  |     $result = mysqli_query($conn, $query); | ||
|  |      | ||
|  |     if (mysqli_num_rows($result) > 0) { | ||
|  |         $rowss = mysqli_fetch_assoc($result); | ||
|  |         // Assign fetched data to variables
 | ||
|  |         $small_heading_EN = htmlspecialchars($rowss['small_heading_CTA_EN']); | ||
|  |         $small_heading_CN = htmlspecialchars($rowss['small_heading_CTA_CN']); | ||
|  |         $large_heading_EN = htmlspecialchars($rowss['Large_heading_CTA_EN']); | ||
|  |         $large_heading_CN = htmlspecialchars($rowss['Large_heading_CTA_CN']); | ||
|  |         $btn_text_EN = htmlspecialchars($rowss['btn_text_cta_EN']); | ||
|  |         $btn_text_CN = htmlspecialchars($rowss['btn_text_cta_CN']); | ||
|  |         $btn_link = htmlspecialchars($rowss['btn_link']); | ||
|  |         $long_description_EN = htmlspecialchars($rowss['long_description_CTA_EN']); | ||
|  |         $long_description_CN = htmlspecialchars($rowss['long_description_CTA_CN']); | ||
|  |     } | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | ?>
 | ||
|  | 
 | ||
|  | <section class="free-trail"> | ||
|  |    <div class="container"> | ||
|  |       <div class="free-trail__wrap"> | ||
|  |          <div class="free-trail__shape-3" | ||
|  |             style="background-image: url(images/shapes/free-trail-shape-3.png);"></div> | ||
|  |          <div class="free-trail__shape-1 float-bob-x"></div> | ||
|  |          <div class="free-trail__start-1 zoominout"> | ||
|  |             <img src="images/shapes/free-trail-start-1.png" alt=""> | ||
|  |          </div> | ||
|  |          <div class="free-trail__start-2 float-bob-y"> | ||
|  |             <img src="images/shapes/free-trail-start-2.png" alt=""> | ||
|  |          </div> | ||
|  |          <div class="free-trail__start-3 float-bob-x"> | ||
|  |             <img src="images/shapes/free-trail-start-3.png" alt=""> | ||
|  |          </div> | ||
|  |          <div class="free-trail__start-4 zoominout"> | ||
|  |             <img src="images/shapes/free-trail-start-4.png" alt=""> | ||
|  |          </div> | ||
|  |          <div class="free-trail__inner"> | ||
|  |             <div class="section-title text-center"> | ||
|  |                <div class="section-title__tagline-box"> | ||
|  |                   <span class="section-title__tagline"><?php echo html_entity_decode($small_heading_EN); ?></span>
 | ||
|  |                </div> | ||
|  |                <h2 class="section-title__title"><?php echo html_entity_decode($large_heading_EN); ?>
 | ||
|  |                </h2> | ||
|  |             </div> | ||
|  |             <p class="free-trail__text"><?php echo html_entity_decode($long_description_EN); ?>
 | ||
|  |             </p> | ||
|  |             <div class="free-trail__btn-box"> | ||
|  |                <a href="<?php echo $btn_link; ?>" class="thm-btn-two free-trail__btn"><?php echo $btn_text_EN; ?><i
 | ||
|  |                   class="icon-up-right-arrow"></i> </a> | ||
|  |             </div> | ||
|  |          </div> | ||
|  |       </div> | ||
|  |    </div> | ||
|  | </section> |