am getting a string value in php it is showing all the related list from the db but my question here is at the sidebar i wanted to display the related list from the same table but it is getting all the list even the row which is already displayed on the main body. So, could you please help me out , to hide the already shown row.`
$queryy = "SELECT * FROM cate_websites WHERE s = 'approved' ORDER BY rand()";
$result = mysqli_query($con1,$queryy);
$allrows = mysqli_num_rows($result);
if ($allrows > 0){
while ($row_result =mysqli_fetch_assoc($result)) {
$eid = $row_result['cid'];
$etitle =$row_result['title'];
$eimage = $row_result['img1'];
$edesc = substr($row_result['meta'],0,100);
$epermalink=$row_result['permalink'];
if($epermalink == $_GET['articles']) {
echo" here it should not display the get value but it show all the rest of the values";
}
}
}
Aucun commentaire:
Enregistrer un commentaire