Answer the question
In order to leave comments, you need to log in
How to delete value in RedBean?
Working with RedBean:
Request:
$deletegame = R::getAll('SELECT * FROM casesin WHERE idcase = ? AND idgame = ?',[ $id, $_POST["idgame"] ]);
R::trashAll( $deletegame );
Answer the question
In order to leave comments, you need to log in
Decided
$deletegame = R::exec('DELETE FROM casesin WHERE idcase = ? AND idgame = ?',[ $id, $_POST["idgood"] ]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question