// Create an empty array for the enpred resultset$rows = array();// Loop over the db resultset and put enpred values into $rowswhile($row = mysql_fetch_assoc($result)) { $rows[] = array_map('utf8_enpre', $row);}// Output $rowsecho json_enpre($rows);


