Can anyone tell me what's wrong with this code? (it's supposed to echo found if an open bracket is found in $dvdmodel)
$pos = strpos ("(", $dvdmodel); if ($pos === true) echo 'found';
phpmanual: strpos (string haystack, string needle)
swap your needle and haystack order and it may work..
aside from that .. a non type sensitive test on $pos would help
strpos returns an integer if found, boolean false if not found.
$pos == true will evaluate to true if the needle exists.
Thanks syberchic, I can't believe I was looking at that for 20 minutes without noticing the needle and haystack were the wrong way round, duh.