What's wrong with this code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What's wrong with this code?

    This code don't accept name submitted with post method
    PHP Code:
    $clean['name'] = @mysql_real_escape_string(htmlentities(stripslashes($_POST['name']))); 
    This one accepts it
    PHP Code:
    $clean['name'] = htmlentities(stripslashes($_POST['name'])); 
    So i assumed problem is with
    PHP Code:
    @mysql_real_escape_string(); 
    Can someone explain what's wrong?
    libra.wen.ru

    #2
    At first line

    $clean['name']
    $clean[name]
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      Thanks SubZero i'll check that when i'm free
      libra.wen.ru

      Comment


        #4
        why dont you use this function
        PHP Code:
        function clean($val)
        {
            
        $val mysql_real_escape_string($val);
            
        $val trim($val);
            
        $val htmlentities($val);
            
        $val stripslashes($val);

            return 
        $val;

        Comment

        Working...
        X