[ecmsinfo]"select * from phome_ecms_news order by rand() desc limit 6 ",6,18,1,24,11,1[/ecmsinfo]
请教这里的:limit 6是指栏目id吗?后面的那个6是指显示数是这样的吗?
为什么我测试不行?
显示以下提示:
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 'and titlepic<>'' order by desc limit 6' at line 1 select * from phome_ecms_ where and titlepic<>'' order by desc limit 6