include "config.php";
  $sql_select = "select * from $categorytable where id='$area'";                   
  $result = mysql_query ($sql_select,$conID) or die ($sql_select);  
  $row = mysql_fetch_array($result) ;    
$j2htotal=$row["counter"];  
$name=$row["name"]; 
?> 
 
 echo $name; ?>-J2H生活資訊
 
 
              		
$get_sites=mysql_query("select * from $categorytable order by id desc",$conID);
while ($get_rows=@mysql_fetch_array($get_sites)){
	$total_found=mysql_num_rows($get_sites);
if($next%4==0){ echo "";}
	echo "| $get_rows[name]";
	$next++;
}?> | 
 
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where category=''' at line 1