我有SQL查询。
$stylesIndex = mysql_fetch_array($stylesQuery)有没有什么php函数可以检查$stylesIndex是否包含特定值?
我试过了,但它不起作用-
if (in_array ("3", $stylesIndex))发布于 2017-07-17 01:46:40
$stylesIndex = ->fetch_array()
if(empty($stylesIndex('any_column_in_your_table') ){
#nothing is in your database.....
}我想这会帮助你..。
https://stackoverflow.com/questions/45131377
复制相似问题