| Server IP : 93.86.61.54 / Your IP : 216.73.216.212 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/news_portal/ |
Upload File : |
<?php
if(isset($_GET['cid']))
{
$cid=$_GET['cid'];
echo "<div style='width:100%'>";
$userQ="select * from category where status='active' and id='$cid' order by id desc LIMIT 12";
$userRes=mysql_query($userQ) or die(mysql_error());
if($count=mysql_num_rows($userRes))
{
while ($userRow=mysql_fetch_assoc($userRes))
{
$category=$userRow['category'];
?>
<div class="gallery">
<a href="">
<img src="assets/images/<?php echo $category;?>/<?php echo $userRow['pic']; ?>" alt="Trolltunga Norway" width="300" height="200">
</a>
<div class="desc"><?php echo $userRow['category'];?></div>
</div>
<?php
}
}
echo "</div>";
}
?>