[eluser]ppwater[/eluser]
[quote author="paulopmx" date="1212565048"][quote author="ppwater" date="1212564807"][quote author="Holla die Waldfee" date="1212501852"]As far as I concern ur problem is based on the encoding. A search inside the grid is nothing more than a SQL-statement on ur database. U have to proof that ur statement has the right syntax & gives a fitting result.
Holla[/quote]
I have tried the sql query directly in the database and it returns right.
But in the php it returns nothing.
So,is there any way to see the value of $_POST['query']?[/quote]
I find it useful to install firebug in firefox, so you will see what flexigrid is passing to the server, and what the server is saying back.[/quote]
Thanks for your help.I have solved the problem.That is because the javascript use utf-8 to post data.But all I use is gb2312.So I should change it form utf-8 to gb2312.And in the php file,I solve it with the code:$query = strval(iconv("UTF-8","GB2312",$_POST["query"]));.
So,it works well now. Thank you.