query($sql); $sql = "insert into seproductsrel values (". $_REQUEST["parid"] .",".$_REQUEST["entityid"] .")"; $adb->query($sql); header("Location: index.php?action=DetailView&module=Potentials&record=".$_REQUEST["parid"]); ?>