<?php include('conn.php'); //include($_SERVER['DOCUMENT_ROOT']."conn.php"); //$conn; function show_major($projectId){ Conn2DB(); $query="select a.branch,b.branch_name From b_major a, branchname b where a.project_id = '".$projectId."' and a. branch = b.branch"; echo $conn; /*$result = mysqli_query($conn,$query); return $result;*/ } ?>