我有一些用Codeigniter框架编写的PHP代码,它不返回任何内容(空集)。 看看 然后告诉我它有什么问题。 p>
function sbsn($ serial){
$ this-> db-> select('asset_types.name as type_name ,asset_brands.name为brand_name');
$ this-> db-> from('asset_types,asset_brands,assets');
$ this-> db-> where('assets.type_code', 'asset_types.code');
$ this-> db-> where('assets.brand_code','asset_brands.code');
$ this-> db-> where('serial_no', $串行);
$ result = $ this-> db-> get();
返回$ result;
}
code> pre>
div>