Copy the following code to your code, modify it into your own needs
IF ($ fn_cp <> ") {$ seek_cp =" SELECT GG, CP from Bom where lh = '$ fn_cp' "; $ result_cp = @ pg_exec ($ link, $ seek_cp); $ gg = trim (pg_result ($ Result_CP, 0, "GG")); $ CP = Trim (pg_result ($ Result_CP, 0, "CP")); $ c_g = $ cp. ''. $ gg;
echo "
IF ($ lh_fh == $ fh_cp) {echo