PhpRiot
Follow phpriot on Twitter
Sponsored Link

Listing 3715

Submitted by jobinraj, 2 September 2010
function addReceipe($resname,$restype,$rescatg,$resing,$resmethod){
         if(!get_magic_quotes_gpc()){
          $resname   = addslashes($resname);
        $restype   = addslashes($restype);
        $rescatg   = addslashes($rescatg);
        $resing    = addslashes($resing);
        $resmethod = addslashes($resmethod);
      }
         $q = "INSERT INTO ".TBL_RECEIPE."(rescp_name,rescp_type,rescp_catg,rescp_ing,rescp_method) VALUES ('$resname','$restype', '$rescatg', '$resing', '$resmethod')";
      return mysql_query($q, $this->connection);
   }
 
   function addTown($townname,$pincode){
         if(!get_magic_quotes_gpc()){
          $townname   = addslashes($townname);
        $pincode   = addslashes($pincode);
        
      }
         $q = "INSERT INTO ".TBL_TOWNLIST."(townname,pincode) VALUES ('$townname','$pincode') ";
      return mysql_query($q, $this->connection);
 
   }
Submit a Follow Up