";
while($row = mysql_fetch_array( $result )) {
$id="";
$img="";
$id=$row['REF_ID'];
$img=$row['IMG_PATH'];
$no++;
echo '
";
} else {
echo '';
echo '';
echo ' ';
echo '
';
}
echo "';
echo '
';
echo ' ';
echo '
';
echo '';
if (isset($_SESSION['userId'])) {
echo '
';
echo '
';
echo '
';
echo ''.$row['TITLE'].'';
}else {
echo '
';
echo ''.$row['TITLE'].'';
}
echo '
';
echo '



';
echo '
';
// if($currentFun == 'all' || $currentSearch == 'all') {
echo 'No Records found !
'; } }else { die("Error: could not connect to database"); } mysql_close($dbconn); ?> Error: could not connect to database"); } mysql_close($dbconn2); $targetpage1 = "gallery.php?page="; $targetpage2 = "&fr=$cat&show=$show"; pagination($total_count,$targetpage1,$targetpage2,6); ?>