![]() |
|
|
|
|
#1 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
Code:
WHERE account = '".$_POST['account']."' AND |
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2006
Posts: 209
|
Yes I know but for now its for test. After I test I Put this L2cp modded function:
Code:
function seguridad1($strh) {
$banwordshh = array ("'", ",", ";", "--", "%", "-", "SELECT", "DROP", "UPDATE", "QUERY", "%", "IN", "UNION, "\"", "'");
if ( eregi ( "[a-zA-Z0-9]+", $strh ) ) {
$strh = str_replace ( $banwordshh, '', strtolower ( $strh ) );
} else {
$strh = NULL;
}
return $strh;
}
___
$account = $_POST['cuenta'];
$cuenta = seguridad1($cuenta);
query ("SELECT blababa WHERE account = '$cuenta'");
PS: I dont know but the array for the query always its blank result!!. |
|
|
|
|
#3 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 113
|
Quote:
Quote:
Try using something like this: PHP Code:
|
||
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|