PHP translate my SQL querys??
Posted: Tue Oct 22, 2002 9:05 am
Hello
I have an sql string like this: "Select.... where strCog like '%Barcelona%'"
But, php translates the characters %ba to a symbol.....
I've found this feature with %be (translated to ¾), %ce (translated to 'Î) and so on.
I've found that the problem occurs when i use this:
header("Location:Llistes.php?where=$Cad");
in this point $Cad is a valid SQL query (without translation)
but when i inspect the $where variable in Llistes.php page, the value of $where variable is incorrect.
Please!!! can anybody help me????
Sorry for my poor english... but for now, i need to know how to resolve my problem. Later, i will learn english.....
Thanks!
I have an sql string like this: "Select.... where strCog like '%Barcelona%'"
But, php translates the characters %ba to a symbol.....
I've found this feature with %be (translated to ¾), %ce (translated to 'Î) and so on.
I've found that the problem occurs when i use this:
header("Location:Llistes.php?where=$Cad");
in this point $Cad is a valid SQL query (without translation)
but when i inspect the $where variable in Llistes.php page, the value of $where variable is incorrect.
Please!!! can anybody help me????
Sorry for my poor english... but for now, i need to know how to resolve my problem. Later, i will learn english.....
Thanks!