Skip to content

Instantly share code, notes, and snippets.

@jagroop
Created August 16, 2018 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagroop/4bfb9b546368c96cbab3a7678e8abccb to your computer and use it in GitHub Desktop.
Save jagroop/4bfb9b546368c96cbab3a7678e8abccb to your computer and use it in GitHub Desktop.
<?php
include 'Query.Inc.php';
$Obj = new Query($DBName);
error_reporting(0);
$SiteURL = "https://".$_SERVER['HTTP_HOST']."/";
$info = $_POST['info'];
$links = $_POST['links'];
$sql = "SELECT name, city, buyurl, imageurl FROM hotelDeal_landingPage LIMIT 0,5";
$result = mysql_query($sql);
?>
<?php for($i=0; $i < count($info); $i++):?>
<div class="headingActivity-new">
<a href="https://mysittidev.com/<?php echo $links[$i]; ?>" class="italicSee cites_links"><h2><?php echo $info[$i]; ?></h2></a>
<a onClick="openModal('<?php echo $info[$i]; ?>');" >See all</a>
</div>
<div class="container recommed-city pcdesktop">
<ul class="us-city worldtop_city">
<?php while($row = mysql_fetch_assoc($result)):?>
<li class="col-sm-3 col-md-3 col-xs-3">
<span class="dealscity_name"><?php echo $row["city"]; ?></span>
<a href="https://mysittidev.com/<?php echo $links[$i]; ?>?city=<?php echo $row["city"]; ?>" target="_blank">
<img src="<?php echo $row['imageurl']; ?>"/>
</a>
</li>
<?php endwhile;?>
</ul>
</div>
<?php endfor;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment