Código PHP:
Ver original
$con = new mysqli("localhost","root","root","database"); $query = "SELECT * FROM table"; $res = $con->query($query); foreach($res as $r) { echo $r->data; }
Muchas gracias!
Gustav.