<?php require_once('../Connections/BE2.php'); 

$company_title=isset($_POST['company_title'])?$_POST['company_title'] :'-1' ;
mysql_select_db($database_BE2, $BE2);
// coid company_title
$query_Rct2 = "SELECT coid FROM company Where company_title='$company_title' ";
$result = mysql_query($query_Rct2, $BE2) or die(mysql_error());
$row_res = mysql_fetch_assoc($result);
$totalRows_res  = mysql_num_rows($result); 
$response=-1; 
 if($totalRows_res==1){
	 $response=$row_res['coid'];
 }
echo $response;
 
mysql_free_result($result);
?>