run()){ $error.="
    ".$upload->errmsg().",图片上传失败..."; }else{ $filename=$upload->savename; } } $co=trim($co); $name=trim($name); $country=trim($country); $tel=trim($tel); $fax=trim($fax); $email=trim($email); $product=trim($product); $cas=trim($cas); $weight=trim($weight); $quan=trim($quan); $formula=trim($formula); $price=trim($price); if(empty($cas)){ $error=$error."
  • Please fill in the cas#!
    "; } $product=trim($product); if(empty($product)){ $error=$error."
  • Please fill in the product name!
    "; } if(empty($co)){ $error=$error."
  • Please fill in the company name!
    "; } if(empty($name)){ $error=$error."
  • Please fill in your name!
    "; } if(empty($tel)){ $error=$error."
  • please fill in the phone!
    "; } if(empty($email)){ $error=$error."
  • Please fill in the E-mail!
    "; } if($error){ echo "

    Sorry There the following wrong:

    "; echo $error; echo""; } else { require_once("include/config.php"); require_once("include/conn.php"); db_connect(); $table_files="product,cas,formula,weight,price,date1,co,name,country,tel,fax,email,"; $values="'$product','$cas','$formula','$weight','$price','$publishtime1','$co','$name','$country','$tel','$fax','$email',"; if($filename){ $table_files.="images,"; $values.="'$filename',"; } $table_files.="memo"; $values.="'$memo'"; $query="insert into kf_product ($table_files) values ($values)"; $result=mysql_query($query); if($err=mysql_error()){ echo"

    出现错误了


    "; }else{ echo"

    Submit Sucess


    "; echo"

    ClickHere Back


    "; exit(); } } db_die($connect); } ?> Add Products Frapp’s Pharma---Professional Supplier of Chemicals and Strong in Customer Synthesis, frappspharma.com
    *
    Contact Person: *
    Country:
    Tel: *
    Fax: 
    Web: *
    E-mail: *
    Product Name: *
    CAS NO.: *
    Molecular Formula:
    Molecular Weight:
    Price:
    Remark:
    Structure