b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Off Topic » Post 916308 | Search
This is a question Off Topic

Are you a QOTWer? Do you want to start a thread that isn't a direct answer to the current QOTW? Then this place, gentle poster, is your friend.

(, Sun 1 Apr 2001, 1:00)
Pages: Latest, 836, 835, 834, 833, 832, ... 1

« Go Back | See The Full Thread

The sollution is using something called a "Real Escape String".
This puts a slash before the ' (so it would look like this

$sql = "SELECT * FROM users WHERE (username='admin') AND (password = '/') OR (/'1/' = /'1');";

So it would be looking for a password called ') OR ('1' = '1, and therefore wouldn't match up in the database, not return a row, and the page will say "Incorrect combination".
(, Sat 16 Oct 2010, 18:24, 1 reply, 15 years ago)
Ah, the old Real Escape String escape.
*shakes head* *lights pipe* Classic.
(, Sat 16 Oct 2010, 18:31, Reply)
If you wanna get into this sort of things in a comercially viable way, learn and use this....
codeigniter.com/

Almost _every_ job I applied for said that was a major factor. Another one to learn is something called jQuery for javascript. Both are amazing tools, I've built stuff inside days which would have taken months without it.
(, Sat 16 Oct 2010, 18:34, Reply)
I'm struggling to get my head around ModX at the moment
I think a sojourn into constructing PHP apps is a little out of my comfort zone =o)
(, Sat 16 Oct 2010, 18:36, Reply)
I just googled ModX, it's almost identical, in the respect that it's an MVC PHP system, but it looks more complicated.
They both use ActiveRecord syntax for database stuff though, which is cool.
(, Sat 16 Oct 2010, 18:46, Reply)

« Go Back | See The Full Thread

Pages: Latest, 836, 835, 834, 833, 832, ... 1