Jump to content

Shp0ngl3

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Posts posted by Shp0ngl3

  1. Thanks alot for the reply MadTechie. I will try it out when I get back to work on monday.

     

    About your question, why not using hash. I must say that in the perfect world I would do that without hesitation, but because of how the system I work on was built before I started working there, and that my boss want's to be able to return the passwords as plaintext, I'm afraid that's not an option :( Tried talking him into letting me rewrite the login system etc, but no luck...

     

    Regards,

    Shp0ngl3

  2. Try something like this

     

    <?php
       
    $connect=mysql_connect("localhost","root","");
    mysql_select_db("bank",$connect) or die ("could not select database");
    
       $query = "select * from customer where approved='0'";
       mysql_query($query) or die(mysql_error());
       
       $query = "UPDATE customer SET approved='1'
       WHERE approved='0'";
       $result = mysql_query($query) or die(mysql_error());
    
       if ($result)
       {
          echo "Details have been successfully approved";
       }
    
    ?>

  3. I've been trying to get this to work now since yesterday, but with no luck.

     

    I run these two queries in Navicat..

     

    UPDATE tbl_members SET member_password=AES_ENCRYPT('password', '1234567890123456') WHERE member_username='rk';
    SELECT * FROM tbl_members WHERE member_username='rk' AND member_password=AES_DECRYPT('password','1234567890123456');

     

    When I check the member_password field (blob) I find ™Ã7Ée“ûË+{£#”U)Ã, but still the result from SELECT is empty.

     

    Anyone has any ideas on how to solve this issue?

     

    Regards,

    Shp0ngl3

  4. First off, thanks for the reply :) About the nick. Don't know if it means anything special. But I almost always listen to Shpongle when I'm working with development. Both at home and when I'm at my job :) Just love their music, put's me in a state of mind where I'm really able to focus over a long period of time :)

  5. Hello everyone!

     

    My name is Ole, and I'm a 26 year old guy from Norway. I currently work as a developer trainee at a company named Klopp Data - Web & Software Engineering.

     

    So far I'm only self taught, but I've applied for a course at "Høgskolen i Vestfold", a college near where I live. It's a open source webdevelopment web based course which takes 5 months to complete, covering PHP, MySQL and Linux. Hopefully I get in :)

     

    Anything you're interested in knowing? Just ask :)

     

    Best regards,

    Shp0ngl3

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.