I see... This is the code you should be using to work with both:
<?php
$FID_num =103;
?>
<?php
$Recordset1 = new WA_MySQLi_RS("Recordset1",$pil1_i,1);
$Recordset1->setQuery("SELECT pil_shared_data.FID, pil_shared_data.Family_Name FROM pil_shared_data WHERE pil_shared_data.FID = ?");
$Recordset1->bindParam("d", "".($FID_num) ."", "-1"); //FID_num
$Recordset1->execute();
?>
Copy and paste that onto your page and then open the Recordset to see how you set up parameters correctly to work in dreamweaver and on the page.