Skip to content

Instantly share code, notes, and snippets.

@chancez
Last active August 29, 2015 13:57
Show Gist options
  • Save chancez/9379996 to your computer and use it in GitHub Desktop.
Save chancez/9379996 to your computer and use it in GitHub Desktop.
<?php
if (isset($_POST)) {
$data = $_POST['blah blah'];
db.query("some sql to insert data", data);
}
$results = db.query('some sql query to get results')
?>
<html>
<form action="example.php" method="POST">
</form>
<?php
while ($row = results.fetch()) {
echo "data: " . $row.blah . "more stuff" . $row.other . "<br>"
}
?>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment