<?php
ob_start();
$PageSecurity = 11;
include('includes/session.inc');
include('includes/function_lib.php');
include('includes/SQL_CommonFunctions.inc');

$sql=DB_query("Select state from state_master where id='".$_REQUEST['q']."'",$db);
$state_row=DB_fetch_array($sql);

$sql2=DB_query("Select categorydescription from stockcategory where categoryid='".$_REQUEST['p']."'",$db);
$cat_row=DB_fetch_array($sql2);

$final_string=$cat_row['categorydescription']." ".$state_row['state'];
?>
<input name="item_name" type="text" class="cap" id="item_name" value="<?php echo $final_string;?>" style="width:100%"/>
