Hello! :hr:
I have this:
database:CONTENT
table: HEADING
table HEADING has columns: ID, h1, section, and date_modified.
In table HEADING, column h1, I’m supposed to have headings stored, so I can use them dynamically. This is what I’m trying to achive:
Get the results of:
SELECT h1 FROM heading WHERE section = ‘super’;
and display them. This is the code that I have and doesn’t work:
$head = “super”;
$select_h = mysql_query(“SELECT h1 FROM heading WHERE section = ‘$head’”);
$fetch_row = mysql_fetch_assoc($select_h);
$content = $fetch_row[‘content’];
if ($content)
{
echo ("$content");
}
else
{
echo (“You sure are stupid.”);
}
Since echo("$content"); doesn’t work, the code displays “You sure are stupid”. Please help, I’m a begginner here. :h:
Thanks in advance,
Leo