I got this problem...
I can't SELECT from my db, because of this...
I need to be able to select where length of column is <= $var...
Here's the query-part:
$where[] = "LENGTH('tolt') >= '".strlen($tolt)."'";
And here's the query:
SELECT id, name, regno, breedingno, bcolor, colorv, gender, type, gaits, price, f, f_breedingno, m, m_breedingno FROM horse_test1 WHERE LENGTH('tolt') >= '3' && date > date_sub(NOW(), INTERVAL 30 DAY) ORDER BY name ASC LIMIT 0, 15
But it selects ALL, not just the ones where tolt is >= 3...
Do I need to set the column to something?
The others are just empty, and NOT NULL 🙂
With thanks in advance, Arni