All I get when I run this script is the GET variable echoed back to me, do I have something wrong with syntax in my $query statement?
here is my html link:
<a href="html_parse.php?value=$store_policies"> <IMG SRC="images/site/site_img5.gif" WIDTH="160" HEIGHT="35" BORDER="0"></A>
here is my php to parse the value, and output html code from mysql if they match:
<?
require_once("sc_fns.php");
echo $HTTP_GET_VARS['value'];
db_connct();
mysql_select_db("book_sc");
$query = ("SELECT * FROM html_pages WHERE html_page_name = '$value'");
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
//echo "<BR>Number of html pages found:".$num_results."<BR><BR>";
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo unhtmlentities($row["html_page_code"]);
echo "<BR><BR>";
}
?>