Function using if isseet Post not getting or triggering function
Can you look at my fle attached starting from line #159. (copied below). I would like it to perform function of Insertirng based on if (isset($_POST["quote_record_exists_ID_".$z])) . It's not seeing my post "quote_record_template_exists_ID_<?php echo $z; ?>" from line 673.
You can see the whole function on (see info on private below)
if (isset($_POST["quote_record_exists_ID_".$z])) {
$qz = $_POST["quote_record_exists_ID_".$z];
//echo $qz;
//die();
$WADAquote_record_exists_ID = new WA_MySQLi_RS("WADAquote_record_exists_ID",$convacc_cx,1);
$WADAquote_record_exists_ID->setQuery("SELECT * FROM cac_quote_new_records WHERE quote_id = ? ");
$WADAquote_record_exists_ID->bindParam("i", "". $qz ."", "-1"); //Paramprod_id
$WADAquote_record_exists_ID->execute();
if ($WADAquote_record_exists_ID->TotalRows > 0) {
$opts = $WADAquote_record_exists_ID->getColumnVal("optionals");
$WADAquote_optionals = new WA_MySQLi_RS("WADAquote_optionals",$convacc_cx,0);
$WADAquote_optionals->setQuery("SELECT * FROM cac_quote_new_optionals WHERE quotenum = ? AND session_id = '$opts' ORDER BY optional_id ASC");
$WADAquote_optionals->bindParam("i", "". $WADAquote_record_exists_ID->getColumnVal("quotenum") ."", "-1"); //Paramprod_id
$WADAquote_optionals->execute();
if ($WADAquote_optionals->TotalRows > 0) {
$wa_startindex = 0;
while(!$WADAquote_optionals->atEnd()) {
$wa_startindex = $WADAquote_optionals->Index;
$InsertQuery2 = new WA_MySQLi_Query($convacc_cx);
$InsertQuery2->Action = "insert";
$InsertQuery2->Table = "cac_quote_new_optionals";
$InsertQuery2->bindColumn("quote_id_person", "s", "". $_SESSION['aq_ID'] ."", "WA_BLANK");
$InsertQuery2->bindColumn("session_ID", "s", "". $produniqid ."", "WA_BLANK");
$InsertQuery2->bindColumn("quotenum", "s", "". $quotenum ."", "WA_BLANK");
$InsertQuery2->bindColumn("quantity", "s", "". $WADAquote_optionals->getColumnVal("quantity") ."", "WA_BLANK");
$InsertQuery2->bindColumn("part_no", "s", "". $WADAquote_optionals->getColumnVal("part_no") ."", "WA_BLANK");
$InsertQuery2->bindColumn("prod_name", "s", "". $WADAquote_optionals->getColumnVal("prod_name") ."", "WA_BLANK");
$InsertQuery2->bindColumn("price", "d", "". $WADAquote_optionals->getColumnVal("price") ."", "WA_BLANK");
$InsertQuery2->bindColumn("totalprice", "d", "". $WADAquote_optionals->getColumnVal("total_price") ."", "WA_BLANK");
$InsertQuery2->bindColumn("DimensionsForShipping", "s", "". $WADAquote_optionals->getColumnVal("DimensionsForShipping") ."", "WA_BLANK");
$InsertQuery2->execute();
$WADAquote_optionals->moveNext();
}
$WADAquote_optionals->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
}
}
}