09-21-2016, 03:57 PM
I'm looking at the manual, but I think not all understand as it is, for example, we find the following documentation:
$director_id = 1;
$query = $db->query("SELECT * FROM camps WHERE director_id = ?", array($director_id));
$x = $query->results();
Then, as I do to show results, ie in this case I want a list of "names" in "camps" ... I just want to know how to do the "echo" or as I show in html the results?
I propose to make a manual like this.
Is costing me a lot of work interact with the database and predefined classes, I really do not know how I am suffering.
Most rookies just want to show something that is already in the database, send the information to achieve, but I can not show it.
I do not want to use functions because it is more difficult for me, I just want a simple query and display the results.
Could you help me?
$director_id = 1;
$query = $db->query("SELECT * FROM camps WHERE director_id = ?", array($director_id));
$x = $query->results();
Then, as I do to show results, ie in this case I want a list of "names" in "camps" ... I just want to know how to do the "echo" or as I show in html the results?
I propose to make a manual like this.
Is costing me a lot of work interact with the database and predefined classes, I really do not know how I am suffering.
Most rookies just want to show something that is already in the database, send the information to achieve, but I can not show it.
I do not want to use functions because it is more difficult for me, I just want a simple query and display the results.
Could you help me?