Warning: addcslashes() expects exactly 2 parameters, 1 given in : i have this peace of codes which produce error Warning: addcslashes() expects exactly 2 parameters, 1 given in line 10
   

     $searchtype=isset($_POST['searchtype']) ? $_POST['searchtype']:null;
        $searchterm=isset($_POST['searchterm']) ? $_POST['searchtype'] : null;
        $searchterm = trim($searchterm);
        if(!$searchtype || !$searchterm)
        
        {
            echo 'You are not entered search detail. Please go back and try again';
            
        }
        if(!get_magic_quotes_gpc())
        {
            $searchtype = addcslashes($searchtype);//line 10 with error
            $searchterm = addcslashes($searchterm);//line with error
        }
        @ $db = new msqli('localhost','root','','sales');
        if(mysqli_connect_errno())
        {
            echo 'Error: Could not connect to database. Please try again leter.';
            exit;