include('inc/conf.inc.php'); ?> include('inc/db.inc.php'); ?> include('inc/authorize.inc.php'); ?> include('inc/session.inc.php'); ?> include('inc/lang.inc.php'); ?> include('inc/top.inc.php'); ?> $res = mysql_query("SELECT * FROM ".$tbl."news WHERE id = '".$_GET['id']."'"); $row = mysql_fetch_array($res); if($row['cat_id'] == 2){ $res2 = mysql_query("SELECT logo, id, company_name FROM ".$tbl."user WHERE id = '".$row['company_id']."'"); $row2 = mysql_fetch_array($res2); } ?>