Fix the sql query tool for mysql.

This commit is contained in:
Mark Crane
2013-06-15 03:35:15 +00:00
parent 2e7eecce2c
commit 98e61a00bf

View File

@@ -147,7 +147,8 @@ else {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
echo " <option value='".$row['name']."'>".$row['name']."</option>\n";
$row = array_values($row);
echo " <option value='".$row[0]."'>".$row[0]."</option>\n";
}
echo " </select>\n";
echo " &nbsp;\n";