bro... when i seen u put the select code into the sql this whole php came to me. Thanks a lot... now that i seen that... im going to make my site to where when u go to it... u gotta log into any of the pages :) but just like with any programming language, the possiblyities are endless. fuk my english lol.
@dashby1969 no because the original characters are "hidden" in the hash. And sha1() is better, because its longer and more unique, harder to get a string that will produce the same hash. To be honest though, either will do as nobody should be able to get to the hashes anyway.
bro... when i seen u put the select code into the sql this whole php came to me. Thanks a lot... now that i seen that... im going to make my site to where when u go to it... u gotta log into any of the pages :) but just like with any programming language, the possiblyities are endless. fuk my english lol.
BladeCT05 1 week ago
Oh wow that helped me so much to understand whats SQL and how to use it :) THANKS!!!
12Edix21 2 weeks ago
Yeah this is what I mean. At 00:38. Do you have a video that goes through you creating that script?
IceyArtist 1 month ago
@IceyArtist Sort of, I have one on a user account system.
betterphp 1 month ago
admin'># works too
MightGuuuy 1 month ago
inpiut rofl!!
"well u dont need to use this function, (cause its not fucking working right noi) haha
yourhollisterdude 3 months ago
@ 11:00 etc. thats pretty much what I do
made a function to check for magic quotes if its on use stripslashes and real escape, if its off realescape.
ti07shadow 1 year ago
@ti07shadow then your strings should be safe :D
betterphp 1 year ago
"stripslashes($inpiut)" <-- =p
RawRzCopteR 1 year ago
@RawRzCopteR wondered how long it would take for someone to point that out....
betterphp 1 year ago
typos are your downfall lol...
RawRzCopteR 1 year ago
@RawRzCopteR I get it right in the end :)
betterphp 1 year ago
@betterphp except in this video LOL
RawRzCopteR 1 year ago
@RawRzCopteR Correction: I get it right in the end when the code is actually used.
betterphp 1 year ago
tyvid this tutorial then although I have used mres I have still left the door ajar for some nasty code, I have
$query = mysql_query ("SELECT * FROM login WHERE username='$username'");
I am assuming I need to do something there as well to prevent inj?
dashby1969 1 year ago
@dashby1969 You would have to apply the mres() function to the $username variable, then you should be okay.
betterphp 1 year ago
so if you encrypt using md5 then again you dont need mysql_real_escape_string ()?
Which is better md5 or sha1 or is that just down to choice?
dashby1969 1 year ago
@dashby1969 no because the original characters are "hidden" in the hash. And sha1() is better, because its longer and more unique, harder to get a string that will produce the same hash. To be honest though, either will do as nobody should be able to get to the hashes anyway.
betterphp 1 year ago