As mentioned, I can directly use "date" => $row to get other data, but the date is empty. I want to ask what should I do
As mentioned, I can directly use "date" => $row to get other data, but the date is empty. I want to ask what should I do
Check if there is a date in the select field in your SQL statement. Print out the SQL and see
Do you have time stored in your database, such as create_time
, update_time
and other fields? After the query is obtained, it is converted through PHP syntax. Instead of “date”=>$row
, this $row
represents more of a piece of data in the database table. What you may want is "date"=>$row['create_time']
.