I need it as part of my SQL query that pulls certain data from the database.
$sql = "Select dsd_detail_id, dsd_detail_combo_key, dsd_detail_item, dsd_detail_item_units,
dsd_detail_item_cases, dsd_detail_item_case_cost, dsd_detail_item_unit_cost, dsd_detail_item_allowance_one,
dsd_detail_item_allowance_two from dsd_detail where dsd_detail_combo_key='$dsd_combo_key'";
$dbh = new PDO("pgsql:host=localhost;dbname=fredhost","xxxx123","xxxx179");
$stmt = $dbh->prepare($sql);
$stmt->execute();
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
However, since the .js file is calling the .php file that does the select the problem is getting the data from the main page and then to either the .js or .php files for building the grid.
Any thoughts?