PCHomepage
Programmer
This little bit of code that I've been using for quite a while works fine for multiple numeric POSTS, which is what I generally have, but now I have some that are text. However, I can't seem to work out how to surround them with single quotes so that they will work in a query. Ideas?
Code:
if ($_POST['Segment3']) {
if (count($_POST['Segment3']) > 0) {
$Where .= "AND Segment3 = ";
$Where .= implode(" OR Segment3 = ", $_POST['Segment3']);
$Where .= " ";
}
}