Hi,
Ok. Now that we have that straight I am having trouble with getting the code to display from my query. It keeps telling me no data.
Here is my code i am using:
<?
include ('includes/config.php');
mysql_connect($DBHost,$DBUser,$DBPass) or die ("Problem connecting to DataBase");
$query = "SELECT * FROM codedata where id='6'";
$result = mysql_db_query($DBName, $query);
if ($result) {
while ($r = mysql_fetch_array($result)) {
$desript = $r["desript"];
$desript ='$desript';
echo htmlentities($dbData);
}
} else {
echo "No data.";
}
mysql_free_result($result);
?>
There are 2 records in the $descript. Do I have something backwards here?
Thanks. Bill.