PHP gets mysql data storage time.

WBOY
Release: 2016-07-06 13:54:04
Original
1392 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!