sc_lookup(estimateFormID, “select EstimateForm.id from EstimateForm, EstimateItem
where EstimateForm.id = EstimateItem.estimate_code
and EstimateItem.price=’$product_price’”);
$estimate_ids = {estimateFormID[0][0]};
sc_alert("$estimate_ids[0]");
array return only one item, should have two items
if I use below script,then error message mysql_fetch_row() expects parameter 1 to be resource, string given
sc_lookup(estimateFormID, “select EstimateForm.id from EstimateForm, EstimateItem
where EstimateForm.id = EstimateItem.estimate_code
and EstimateItem.price=’$product_price’”);
$estimate_ids = {estimateFormID[0][0]};
while ($estimate_id = mysql_fetch_row($estimate_ids)) {
sc_alert("$estimate_ids[0]");
}
Regards,
Franko TSE