The Chinese fields of zendframework are filtered, and mysql Chinese fields cannot be obtained. The English and digital fields can both be IndexController. php controller, which uses Chinese fields for filtering and cannot retrieve the PHPcode & lt ;? Phprequire_once 'zendframework Chinese field is used for filtering. mysql Chinese fields cannot be obtained. both English and numerical fields are supported.
The following is the IndexController. php controller part. this part uses Chinese fields for filtering and records cannot be retrieved.
PHP code
View-> title = 'aaa'; $ goods = new goods (); $ dbs = $ goods-> getAdapter (); // the data returned by the adapter query is an array $ cname = "Sony cost-effective getting started SLR A580 SLR camera [demo data ]"; $ res = $ dbs-> query ("select * from shopnc_goods where goods_name = ". $ dbs-> quote ($ cname ). "limit 0, 9")-> fetchAll (); echo""; print_r($res); echo "
"; Exit ();}}
------ Solution --------------------
Check whether this string exists in the table.
Check whether the encoding is correct.