Select Data With MySQLi code example Example 1: php + get sql query echo $select->__toString(); Example 2: MySQL SELECT SELECT select_list FROM table_name;