starting shit oops forgot the db

This commit is contained in:
unknown 2019-11-03 00:53:48 -04:00
commit 9e17051db3
5 changed files with 328 additions and 0 deletions

12
pages/story.php Normal file
View file

@ -0,0 +1,12 @@
<?php
require_once 'imp/db.php';
$q = "SELECT * FROM pages WHERE page = '$page'";
$result = mysqli_query($db, $q);
$pageinfo = mysqli_fetch_assoc($result);
echo "<h1>".$pageinfo["title"]."</h1><br>";
echo "<p>".$pageinfo["content"]."</p>";
echo $page+1;