php script for retriving data from sql code example Example: php + get sql query echo $select->__toString();