I inserted several data within the same column with implode
, now I want to extract the results of the query with the explode in order to get the data separated and then to work.
I have the code this way, but it is not returning anything in the arrays:
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->set_charset('utf8');
$sql = "SELECT arrachar FROM centrodb.marcacaoInfancia";
$result = mysqli_query($conn, $sql);
$result1 = explode(' ', $result);
echo $result1[0];
echo $result1[1];
echo $result1[2];
echo $result1[3];
echo $result1[4];
echo $result1[5];
echo $result1[6];
echo $result1[7];
echo $result1[8];
echo $result1[9];
echo $result1[10];
echo $result1[11];