Answer the question
In order to leave comments, you need to log in
How to display all rows from RedBeanPHP table?
Hello, I'm using RedBeanPHP , and I have a table , it has 3 rows that look like this
and I want to display from this table all rows that have "name" equal to "author"
$name = 'author';
$game = R::findOne('game', 'name = ?', array($name));
echo $game;
$game = R::find('game', 'name = ?', array($name));
Answer the question
In order to leave comments, you need to log in
Maybe "_findAll"?
redbeanphp.com/api/class-RedBeanPHP.Facade.html#_f...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question