$users = explode(",", $particiTemp);
foreach($users as $user) {
echo "$user";
}
$checkSQL = mysql_query("SELECT * FROM this WHERE x>'$y' && v<'$z' && user IN ($particiTemp)");
while($checkData = mysql_fetch_array($checkSQL)){
}
I´m kinda stuck right here...
I want to check if $particiTemp (for example: $particiTemp = "2,23,11,4,"
) is in the field $checkData[user] ($checkData[user] = "5,22,11,23";)
.
I tried to explode both and tried mysql IN
but I don´t know how to check if the field $checkData[user]
CONTAINS one of the imploded $particiTemp