okay, the subject is a little confusing, but at least you're here.

I've setup a component in php so that I can re-use it within my site using includes.

however, I have a script that checks the security settings on a user. when an administrator setting is reached it should return the contents of a field which contain an include statement to include some additional information.

it isn't working! this is what I have:

$sqlB = "SELECT * FROM Security WHERE Security.ID = '$company_id'";
$sql_resultB = mysql_query($sqlB, $connection) or die("Couldn't query security table.");
while ($rowB = mysql_fetch_array($sql_resultB)){
$feature = $rowB["option_1"];
$company_id = $rowB["ID"];
}
$feature;