How to clear mysql real_escape from input.php

Started on the old forum in January 2012 · view the original in the archive · old links redirect here

3 replies · 424 views · started 14 years ago · 1 min read

2 participants
tejassoni Junior · 29 posts #3

means admin panel file. on sea script admin panel file is input.php .

that how to protect it ?

wapxtech Developer · 189 posts #4

tejassoni wrote: means admin panel file. on sea script admin panel file is input.php .

that how to protect it ?

post your input.php file here.. I dont know what is sea script I dont know any script, just be specific!! post your input.php that you have here, so that We can help you..

Added after 14 minutes:

ok, I will teach you how to do it, so do it your self if you dont want to post your input.php file here..

if you have a query like this

mysql_db_query(sample_database, "INSERT INTO sample_table VALUES ('value1','value2','value3','value4','value5','value6','value7','value8','value9')") or die("Database Error");

you can use mysql_escape_string like this

mysql_db_query(sample_database, "INSERT INTO sample_table VALUES ('".mysql_escape_string(value1)."','".mysql_escape_string(value2)."','".mysql_escape_string(value3)."','".mysql_escape_string(value4)."','".mysql_escape_string(value5)."','".mysql_escape_string(value6)."','".mysql_escape_string(value7)."','".mysql_escape_string(value8)."','".mysql_escape_string(value9)."')") or die("Database Error");

If you use mysql_escape_string any string that the user will input will not affect your query..

External image (may be gone) http://wapx.amob.com Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

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