<div class="login-group">
<div class="form-group">
<table cellspacing="0" cellpadding="0" border="0" class="container">
<?php
$selectquery = "Select * from tblservices where category_id = 1";
$qry=mysqli_query($con,$selectquery);
if($qry)
{
$rowcount=mysqli_num_rows($qry);
if($rowcount>0)
{
$countI = 1;
while($obj=mysqli_fetch_array($qry))
{
if($countI==0)
{
?>
<tr>
<td class="bgimg">
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<?php echo $obj["service_name"]; ?>
</a>
</td>
<td>
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<img src="<?php echo '../assets/img/'.$obj['service_image']; ?>" alt="" >
</a>
</td>
</tr>
<?php
$countI = $countI + 1;
}
else if($countI %2 ==0)
{
?>
<!--<a href="/go.html?url=#" data-id="<?php echo $obj["value1"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">show value</a>-->
<tr>
<td>
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<img src="<?php echo '../assets/img/'.$obj['service_image']; ?>" alt="" >
</a>
</td>
<td style="font-size:20px; text-align: center;" class="bgimg">
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<?php echo $obj["service_name"]; ?>
</a>
</td>
</tr>
<?php
$countI = $countI + 1;
}
else
{
?>
<tr>
<td style="font-size:20px; text-align: center;" class="bgimg">
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<?php echo $obj["service_name"]; ?>
</a>
</td>
<td>
<a href="/go.html?url=#" data-id="<?php echo $obj["service_id"]; ?>" data-toggle="modal" data-target="#myModal" class="modalLink">
<img src="<?php echo '../assets/img/'.$obj['service_image']; ?>" alt="" >
</a>
</td>
</tr>
<?php
$countI = $countI + 1;
}
}
}
}
?>
</table>
</div>
<div class="login-group">
<div class="form-grou