Created
August 16, 2018 10:35
-
-
Save jagroop/4bfb9b546368c96cbab3a7678e8abccb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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