Ok instead of including like 5 pages, or putting 5 pages inside my PHP code, I figured I would put them in mySQL and then retrieve them as needed. My code is passing the right info on to mySQL to retrieve it, but it's not retrieving it correctly.
include("./mysql.php");
$query = "SELECT content FROM pages WHERE name='$page'";
$result = mysql_query($query) or die("Extracting");
$result = mysql_fetch_array($result);
print $result[0];
mysql_close();
Say $page = newsdelete.
In mySQL I have this:
<p>Are you sure you want to delete this article?</p>
<?php echo '<p><a href="./news.php?mode=5&name=' . $name . '&id=' . $id . '">Yes</a> <a href="./index.php">No</a></p>'; ?>
However when the page executes I only get Are you sure you want to delete this article?
Whats going in!