I have a table column where the value is an imploded value like this 5,9,1,6,4,8,2,24,14,3
now I want to run a query possibly like this SELECT * FROM table WHERE /* 1 is in array of (imploded_table_column)*/
Please I don't have a clue on how to run such query anyone with an idea or do I have to run the query in a long way like this:
$query = mysqli_query($con, "SELECT * FROM table");
$sql = mysqli_fetch_array($query);
$val = $sql['imploded_column'];
if(in_array('1', $val)){
//run code here
}