Answer the question
In order to leave comments, you need to log in
How to hide some object ids from a site from a SQL query?
How can I make this entry not show up?
<?php
$sql = "SELECT * FROM kino WHERE janr='$janr_search' ORDER BY RAND() LIMIT 4";
$result = $db->query($sql);
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
echo "
<div class='kinko1a'>
<a class='link11' href='index_films.php?id={$row['id']}'>
<div class='link111'>
{$row['images']}
{$row['title']}
</div>
</a>
</div>
";
}
?>
Answer the question
In order to leave comments, you need to log in
Change the first character in a file without loading the entire file into memory.
Update this part of the query:
Add instead of 1, 2, 3, 4 - the id of the movies you don't want to show.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question