aatest2

[insert_php]

$ctte = array(“Budget and Taxation”=>”b”,
“Education, Health, and Environmental Affairs”=>”ehe”,
“Executive Nominations”=>”exn”,
“Finance”=>”fin”,
“Judicial Proceedings”=>”jpr”,
“Rules”=>”sru”,
“Appropriations”=>”app”,
“Economic Matters”=>”ecm”,
“Environment and Transportation”=>”env”,
“Health and Government Operations”=>”hgo”,
“Rules and Executive Nominations”=>”hru”,
“Judiciary”=>”jud”,
“Ways and Means”=>”w”);

$x = “Judiciary”;
//echo “Committee: $ctte[$x]\n”;

$fname = WP_PLUGIN_DIR.”/mgaleg/hearings.txt”;
$myfile = fopen($fname, “r”) or die(“Unable to open file!”);

echo ‘

'."\n";
echo "Bill Name Committee Hearing ctte\n";
while(! feof($myfile)) {
$string = fgets($myfile);
$bill = explode(";",$string, 5);
$bill[1] = substr ($bill[1], 28);
$bill[2] = substr ($bill[2],1);
//echo "$committee; $bill[2]; $ctte['Judiciary']; \n";
$x = $bill[2];
echo "$bill[0] $bill[1] *$bill[2]* $bill[3] $ctte[$x]\n";
}
echo '
‘;
fclose($myfile);

[/insert_php]