Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
foreach ($terms as $term) {
$query .= "
`path` LIKE '%".mysql_escape_string($term)."%' OR
`description` LIKE '%".mysql_escape_string($term)."%' OR
`comment` LIKE '%".mysql_escape_string($term)."%' OR
`caption` LIKE '%".mysql_escape_string($term)."%' OR ";
}
Then just add your new columns to search under it, like so:foreach ($terms as $term) {
$query .= "
`path` LIKE '%".mysql_escape_string($term)."%' OR
`description` LIKE '%".mysql_escape_string($term)."%' OR
`comment` LIKE '%".mysql_escape_string($term)."%' OR
`caption` LIKE '%".mysql_escape_string($term)."%' OR
`EXIF_keyword` LIKE '%".mysql_escape_string($term)."%' OR ";
}
foreach ($terms as $term) {
$term = mysql_real_escape_string($term);
$multi_term = explode("+",$term);
$path = implode("%' AND `path` LIKE '%",$multi_term);
$description = implode("%' AND `description` LIKE '%",$multi_term);
$comment = implode("%' AND `comment` LIKE '%",$multi_term);
$caption = implode("%' AND `caption` LIKE '%",$multi_term);
$exif_keyword = implode("%' AND `EXIF_keyword` LIKE '%",$multi_term);
$query .= "
`path` LIKE '%".$path."%' OR
`description` LIKE '%".$description."%' OR
`comment` LIKE '%".$comment,"%' OR
`caption` LIKE '%".$caption."%' OR
`EXIF_keyword` LIKE '%".$exif_keyword."%' OR ";
}
1 to 3 of 3