1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need simple PHP help

Discussion in 'PHP & Perl' started by snakeccc, Nov 20, 2012.

  1. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    104
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    How can i for example secret code read from my db ???

    $secret = 'b75a36cb89b50afe1eaa90f965b51b4c';

    If this b75a36cb89b50afe1eaa90f965b51b4c is placed in datebase table :D
     
  2. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    You mean you just want the query to search the database for this hash?
     
  3. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    I think THIS page will help you.
     
  4. FLK101

    FLK101 Newbie

    Joined:
    Apr 3, 2008
    Messages:
    23
    Likes Received:
    6
    Location:
    S. FLA
    hameem's link is best example
     
  5. NIXMY

    NIXMY Regular Member Premium Member

    Joined:
    Sep 26, 2010
    Messages:
    481
    Likes Received:
    321
    Location:
    myproxylists.com
    Home Page:
    At first glance it looks to me as MD5 hash.

    Code:
    <?php
    $str = 'password';
    
    if (md5($str) == 'b75a36cb89b50afe1eaa90f965b51b4c') {
        echo "Password matches ...\n";
    } else {
        echo "Invalid password ...\n";  
    }
    ?>
    
    Hope that helped to point you to the right direction.