$row to obtain other data, but the date is empty. I would like to ask what should I do?"/> $row to obtain other data, but the date is empty. I would like to ask what should I do?">

Home >Backend Development >PHP Tutorial >PHP gets mysql data storage time.

PHP gets mysql data storage time.

WBOY
WBOYOriginal
2016-07-06 13:54:041463browse

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

Reply content:

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'].

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn