1
How do I view my Mysql database items in php, so that you select all items except one item. Ex: I have several records...
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’m not sure I made myself clear in my question.
Thanks, solved my problem. :)
– Leno Sousa