how to stop mysql injector on registration page

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

4 replies · 469 views · started 15 years ago · 1 min read

3 participants
berty14 Developer · 52 posts #1

how to do it plz help

Added after 3 minutes:

i get hack person putting a code in wen registration and wen the enter there is owner

berty14 Developer · 52 posts #3

wat u mean mysql_real_string_escape() function and where I have to put it

sm4rtgl0b3 Junior · 11 posts #4

you can use also ereg_replace() function like

$str=ereg_replace("[^a-zA-Z0-9_ -]", "", $_REQUEST['query']);

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close