Can anybody see what is wrong with this code? apparently i have an 'empty
delimiter' on the line that sets $pos - can anybody see what is wrong with
it?
$search_for = $_GET['for'];
$the_items_desc ription = $row ["descriptio n"];
$pos = stristr($the_it ems_description , $search_for);
if ($search_for == "") {
$does_contain_t ext = true;
} elseif ($pos === false) {
$does_contain_t ext = false;
} else {
$does_contain_t ext = true;
}
// end text search
if ($does_contain_ text == true) { // rest of page works fine
delimiter' on the line that sets $pos - can anybody see what is wrong with
it?
$search_for = $_GET['for'];
$the_items_desc ription = $row ["descriptio n"];
$pos = stristr($the_it ems_description , $search_for);
if ($search_for == "") {
$does_contain_t ext = true;
} elseif ($pos === false) {
$does_contain_t ext = false;
} else {
$does_contain_t ext = true;
}
// end text search
if ($does_contain_ text == true) { // rest of page works fine
Comment