require_once('../Connections/obc.php'); $topic_id = $_GET['topic_id']; mysql_select_db($database_obc,$obc); $sql1= "select * from tb_topic"; $result1 = mysql_query($sql1, $obc) or die(mysql_error()); $sql2= "select * from tb_topic"; $result2 = mysql_query($sql2, $obc) or die(mysql_error()); $sql3= "select * from tb_topic where topic_id like '$topic_id'"; $result3 = mysql_query($sql3, $obc) or die(mysql_error()); $record3 = mysql_fetch_array($result3); $sql4= "select * from tb_faq where topic_id like'$topic_id' AND publish like 'yes' ORDER BY hits desc"; $result4 = mysql_query($sql4, $obc) or die(mysql_error()); $total4 = mysql_num_rows($result4); ?>