I don't get why this doesn't work.
I have a field called $weekday in my db, type = varchar
I fill it with a value - "a" (no quotes)
I echo $weekday and it says "a"
I write
if (strpos($weekday, "a") !=false) {
echo "blarg";
}
and I get nothing.
I also tried simply
if (strpos($weekday, "a")) {
echo "blarg";
}
and still nothing.
Seems like it should work...any clues?