How do I display items from my MySql database in php, so that I select all items except one item. Ex: I have several registrations ...
item 1 | id01
item 2 | id02
item 3 | id03
item 4 | id04
item 5 | id05
item 6 | id06
I want to display all in php except the item with id04.
My code ...
$itemcheck = $dbh->prepare("select * FROM itens ORDER BY it_data DESC");
$itemcheck->execute();
while ( $cm_item = $itemcheck->fetch(\PDO::FETCH_OBJ) ){
}
I do not know if I was clear on my question.