$sql="SELECT * from forms "; $record = $conn->query($sql); in php code example
Example 1: php + get sql query
echo $select->__toString();
Example 2: MySQL SELECT
SELECT select_list
FROM table_name;
echo $select->__toString();
SELECT select_list
FROM table_name;