php - Values Cannot be read by MySQL? -


i have query in mysql, have values in database there comma example (monday, tuesday). reads data if there 1 inside (monday) or (tuesday) when data more 1 , comma mysql doesn't read it. i've tried charindex didn't work or maybe used wrong syntax. help.

here's snippet want read data

if (date_format(ts.`date`, '%w') <>  r.`number`, 0, 1) 'restday' 

i tried

if (charindex(date_format(ts.`date`, '%w') <>  r.`number`, 0, 1)) 'restday' 

but sends error message


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -