Added: 6 months ago
From: phpacademy
Views: 13,152
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (57)

Sign In or Sign Up now to post a comment!
  • Well explained !!!!!

  • please tell me which screen recorder do you use?

  • thx so much

    

  • LOL hack hacking hacker hackers are in the Tags

  • Comment removed

  • UBUNTU FTW!

  • The magic quotes feature DOES NOT DO THE SAME as mysql_real_escape_string. You handle it correctly when you add the code, but it's important to note that magic quotes does an addslashes, not a mysql_real_escape_string.

  • no more magic quotes? D: noooooooo

  • very good explanation..thanks 

  • Great Visual Tutorial... BAaaaaad accent.. gives u in the nerves..... Grrrrrr.... bloodyyy British....... hahahahahahhahahah...

  • @threeclock

    Yeah? What happens when they disable JavaScript inside their browser?

  • very nice, this was very useful for me ;)

  • TOGETHER TO THE TOP!

  • @threeclock JavaScript is not for security.

    Amother tip.

    There is a better solution than mysql_real_escape_string and that is prepared statements, availabe for users of mysqli and PDO.

    Unless you're working on a legacy system, one should use the better api!

  • Just use JavaScript to validate the form before submitting.

  • By the way, you can also add another function:

    mysql_real_escape_string(trim(­$_POST[ 'email' ] ) )

    trim() removes leading and trailing spaces.

  • Why do most of your SQL statement variables have { }?, I've never seen PHP modeled with them unless prefixed after a function.

  • @Sagaterious me too

  • My login is made so that you can only enter numbers and alphabetic characters.

  • @xXZarlachXx you did that with a javascript?

    and can i have a link to your site ?

  • @daeheadshot

    I think it does something like @N1ghtSp33D said, checking from a-z A-Z and 0-9.

  • @xXZarlachXx i was wondering because if you save the site and delete (for example) the javascript code that prevents you from entering the chars you want you can simply do the attack anyways.

  • @daeheadshot Firebug is your friend.

  • tnx for the video can you do php online rating and taking the voter's ip

  • Ubuntu :)

  • or just do a preg_match allowing a-zA-Z0-9-_

  • one could instead use PDO (PHP Data Objects) for interfacing with a database, like mysql for example.

    PDO ships with PHP 5.1 and it's prepared statements eliminate any opportunity to change the logic of the SQL.

    php(.)net/manual/en/intro.pdo.­php

  • Great tut, very useful, thankyou :)

  • Wait.. i havent seen any site using id to login?

  • @n0b0dy241 It was just for demonstration purposes...

  • @n0b0dy241 Just an example...

  • Use eclipse! X-Platform + BEST JAVA IDE made IN Java!

  • @NullDeveloper I do for java, but this is not Java ;)

  • Linux is the best!

    Btw.: Netbeans is also available on Linux. ;)

  • very informative, thank you.

  • If you're going to use mysql statements at least use the mysqli class.

  • @Techn0Junki3 mysql is still faster than mysqli, though mysqli gives back by being more feature rich.

  • are you using Ubuntu or Mac OS?

  • @GSNTube5 Ubuntu.

  • nice video, you're a really good teacher. you and bucky from newboston are great! keep it up

  • You should all be using prepared statements and avoid the mysql_* functions

  • @PHPWizz It's me :)

  • @PHPWizz Yes.

  • lol, "decrypting" the hash with john took 0 seconds :D

  • thanks for the tutorial

  • You should do tutorials on MySQL database optimization (performance..)

  • @heydude8999 Agreed... that is one thing I would love to learn more about.

  • I <3 your tut's

  • Linux :D

  • watch?v=rdyQoUNeXSg

    defcon 17 Advanced SQL Injection

    this is what you can do whit SQL injections

  • Comment removed

  • sanitize var

  • 1st

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more