Answer the question
In order to leave comments, you need to log in
How to solve the problem of retrieving data from a DB using Read Bean PHP?
$districts = R::find('districtofcities', "Belonging_to_the_city = ?", array("Киев"));
echo '<pre>';
print_r($districts);
echo '</pre>';
foreach ($districts as $key){
echo '$key->Belonging_to_the_city';
}
Answer the question
In order to leave comments, you need to log in
Most importantly, I set the difficulty to medium.
There have been a lot of questions about RB lately. and all questions have one characteristic feature: the questioners do not know php. In general, from the word "absolutely". It seems that someone recruited schoolchildren for courses, but for some reason teaches one little-known library and nothing more.
And as a result, there are questions like this, "I don't know how to display the value of a variable in the browser, sorry."
I'm talking about logic in general.
"Everything super outputs as it should" means that the data was extracted successfully, there are no problems with this.
But the question, nevertheless, is called "How to solve the problem of extracting data from the database".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question