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

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -