include("config.inc.php") ;
mysql_select_db($db) ;
$result = mysql_query("SELECT personal.*,mentorres.* FROM personal,mentorres
WHERE personal.mentor_id = mentorres.mentor_id ") or die ("Err Can not to result") ;
$dbarr = mysql_fetch_array($result);
//AND personal.mentor_id='1'
$result = mysql_query("SELECT personal.*,mentorres.* FROM personal,mentorres
WHERE personal.mentor_id = mentorres.mentor_id AND personal.mentor_id='1'") or die ("Err Can not to result") ;
$dbarr = mysql_fetch_array($result);
$result = mysql_query("SELECT personal.*,mentorres.* FROM personal,mentorres WHERE personal.member_id='$member_id' AND personal.mentor_id = mentorres.mentor_id ") or die (mysql_error()) ;