吧这段sql查询语句放入php就会空白是为什么呢?
语句在mysql查询没问题,可以显示查询结果的.$sql = mysql_query('select attach.* , category.* from attach, category where attach.id = substring_index(substring_index(substr(category.ext,locate('"attach"',category.ext)),'"',4),'"',-1) order by rand() limit 5');如果去掉
 substring_index(substring_index(substr(category.ext,locate('"attach"',category.ext)),'"',4),'"',-1)
就没问题,怎么解决呢?