2
I don’t have much idea how to 'compare' between 2 variables in the example below:**
if ($rows['block'] == $idBlock ) {/*....*/} else {/*....*/}
Until well, because if the registered id is equal what is in mysql will work, but will have several ids separated by commas,ex: 'aaa,bbb,ccc,ddd'
and would like to know if it is possible to 'compare' all lines of the string in mysql and see if you find something equal to the individual lock variable (idBlock).
@Pedrohenrique your final code must stay
$blocks = explode(',', $rows['block']);
– rray