
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.59 KB | hits: 9 | expires: Never
Mysql PHP error when calling table row
if ($_GET['linklabel'] !== '')
{
$query = "SELECT templateid FROM pages WHERE linklabel = {$_GET['linklabel']}";
$result=mysql_query($query);
$templateid = $result['templateid'];
echo $templateid;
if ($result !== 0)
{
include($templateid.'.php');
}
else
{
include('404error');
}
}
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
$templateid = $result['templateid'];
$query = "SELECT templateid FROM pages WHERE linklabel = '{$_GET['linklabel']}'";