How would I print data out from a database in php using pdo
In English please?
>>59407427
I have some data in a database and i want to use echo to show it on the screen. How would I do that?
install gentoo
Loop.
Echo.
I'm not sure what you don't get.
>>59407594
This isn't printing anything tho
function getFruit($conn){
foreach($conn->query("SELECT name, color, calories FROM Fruit ORDER BY name") as $row){
print $row['name'] . "\t";
print $row['color'] . "\t";
print $row['calories'] . "\n";
}
}
getFruit($connection);
Install memcached, keep all of your production data inside of that.