-2
I have this list
$lista_datas = ["2020/02/17","02/04/2020","02/05/2020"];
It works perfectly in my shape system. I recently needed the values in this list to come from a specific column of the database (Xdatas column), which contains other dates. The code doesn’t work. See what I’m trying to do to fetch the values and store in this list.
$sql = "SELECT data FROM basededados";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$lista_datas = $row['XDaTas'];
}}
How can I resolve this situation to get the database query in the format described at the beginning of this question ?
Thanks William, it worked. I’ll have more attention, hugs ...
– Iniciante