I have SQL query.
$stylesIndex = mysql_fetch_array($stylesQuery)
is there any php function that check if $stylesIndex
contain specific value?
i tried this and it's not working -
if (in_array ("3", $stylesIndex))
I have SQL query.
$stylesIndex = mysql_fetch_array($stylesQuery)
is there any php function that check if $stylesIndex
contain specific value?
i tried this and it's not working -
if (in_array ("3", $stylesIndex))
$stylesIndex = ->fetch_array()
if(empty($stylesIndex('any_column_in_your_table') ){
#nothing is in your database.....
}
i think this will help you...