select html data select database php pdo code example Example: php + get sql query echo $select->__toString();