how to query a db and display results in html php code example Example: php + get sql query echo $select->__toString();