sql:select * from `shop_category` where id=
错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Array ( [1] => Array ( [file] => E:\wwwroot\dslmgj.com\class\AllService.class.php [line] => 112 [function] => execute_dql [class] => SqlHelper [object] => SqlHelper Object ( [conn] => mysqli Object ( [affected_rows] => -1 [client_info] => mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ [client_version] => 50011 [connect_errno] => 0 [connect_error] => [errno] => 1064 [error] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [error_list] => Array ( [0] => Array ( [errno] => 1064 [sqlstate] => 42000 [error] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ) ) [field_count] => 20 [host_info] => 127.0.0.1 via TCP/IP [info] => [insert_id] => 0 [server_info] => 5.5.62-log [server_version] => 50562 [stat] => Uptime: 15165978 Threads: 1 Questions: 5602543 Slow queries: 744 Opens: 15493 Flush tables: 1 Open tables: 5 Queries per second avg: 0.369 [sqlstate] => 00000 [protocol_version] => 10 [thread_id] => 279067 [warning_count] => 0 ) ) [type] => -> [args] => Array ( [0] => select * from `shop_category` where id= ) ) [2] => Array ( [file] => E:\wwwroot\dslmgj.com\hepcente.php [line] => 13 [function] => tablecat [class] => AllService [object] => AllService Object ( [sqlHelper] => SqlHelper Object ( [conn] => mysqli Object ( [affected_rows] => -1 [client_info] => mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ [client_version] => 50011 [connect_errno] => 0 [connect_error] => [errno] => 0 [error] => [error_list] => Array ( ) [field_count] => 20 [host_info] => 127.0.0.1 via TCP/IP [info] => [insert_id] => 0 [server_info] => 5.5.62-log [server_version] => 50562 [stat] => Uptime: 15165978 Threads: 1 Questions: 5602544 Slow queries: 744 Opens: 15493 Flush tables: 1 Open tables: 5 Queries per second avg: 0.369 [sqlstate] => 00000 [protocol_version] => 10 [thread_id] => 279067 [warning_count] => 0 ) ) ) [type] => -> [args] => Array ( [0] => shop_category [1] => ) ) )