You are given a passage. You need to construct a question about the information present in the passage. Construct a question in such a way that (i) it is unambiguous, (ii) its answer is the whole paragraph. Avoid creating questions that can be answered correctly without actually understanding the paragraph.

Example Input: 20x^2 + 15x - 8x -6 = 20x^2 + 7x - 6
Example Output: wat is the answer to (5x - 2 ) ( 4x + 3 )?

Example Input: If you are using the native mysql drivers in PHP, then there are no MySQL arrays, you are creating an object that you iterate over. The idea is to iterate over the object's results and put those results into an array. Observe:

<?php
// Connecting, selecting database
$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_select_db('my_database') or die('Could not select database');

// Performing SQL query
$query = 'SELECT * FROM my_table';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());

// Printing results in HTML
echo "<table>&#92;n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "&#92;t<tr>&#92;n";
foreach ($line as $col_value) {
echo "&#92;t&#92;t<td>$col_value</td>&#92;n";
}
echo "&#92;t</tr>&#92;n";
}
echo "</table>&#92;n";

// Free resultset
mysql_free_result($result);

// Closing connection
mysql_close($link);
?>

The line you are looking for is:
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))

Basically, mysql_fetch_array will return an associtive array containing the column name as the key, and the data for that column into $line. Then you can further push that into an array container.

var $data = array();
...
$data[] = $line;
...

You cannot otherwise take a mysql result and make it an array, you must iterate over the object.

FYI - I do not reccomend using the native PHP drivers. Using an abstraction library makes your code so much more portable. Using native drivers may make for quick coding, but you loose so much more in the end.

I've included links to Pear::DB, ADODB, and PDO as possible libraries to look at. There are more, these are just examples.

Hope that helps.
Example Output: How to save arrays in MySQL with PHP?

Example Input: i was kidnapped by my step father when i was 3 or 4, he meant to kidnap my brother, who was his son, but he was too drunk, couldnt tell who he was kidnapping. that was pretty damn funny
Example Output:
What is the funniest thing that has happened to you?