mysql php select query w3 school code example Example: php + get sql query echo $select->__toString();