Fix the sql query tool for mysql.
This commit is contained in:
parent
2e7eecce2c
commit
98e61a00bf
|
|
@ -147,7 +147,8 @@ else {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
foreach ($result as &$row) {
|
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 " </select>\n";
|
||||||
echo " \n";
|
echo " \n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue