Hi there,
I've been working on this little problem for several days now, and as hard as I try I can't crack it, I've even tried it on another computer without success.
I get the following error:
You have an error in your SQL syntax near 'group='intergrated'' at line 1
...when I goto http://localhost/ssi/sections.php?id=1&group=intergrated when I use this code:
<?
if ($_GET['group'] == '')
{
$group = 'main';
}
else
{
$group = $_GET['group'];
}
$lmenu = mysql_query("SELECT name,link FROM menu WHERE menu='left' AND group='$group'")
or die(mysql_error());
While ($row = mysql_fetch_array($lmenu))
{
echo '<tr><td><a href="$siteurl/';
echo $row['sublink'];
echo $row['link'];
echo '">';
echo $row['name'];
echo '</a></td></tr>';
}
mysql_free_result($lmenu);
?>
Any help would be appreciated.
Thank you,
Chris