setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $db->query($_POST['query']); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); $fields = array_keys($rows[0]); } catch (PDOException $e) { $errormessage = $e->getMessage(); } } ?>
Sorry, an error occurred :(
PDO gave this error message:
= $errormessage ?>
= $field ?> |
---|
= $row[$field] ?> |