Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7879605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:56:06+00:00 2026-06-03T03:56:06+00:00

From a rss feed i have either pubdate as well the timestamp: pubdate: Thu,

  • 0

From a rss feed i have either pubdate as well the timestamp:

pubdate:
Thu, 03 May 2012 09:00:00 +0000
timestamp:
1336035600

However when i insert it into the database it’s always: 0000-00-00 ETC.
This is the query:

    $query = "INSERT INTO adafruit_articles VALUES ('', '$title', '$link', '$comments', '$timestamp', '$description', '$content')";

enter image description here

Is my database set up correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:56:07+00:00Added an answer on June 3, 2026 at 3:56 am

    You need to convert it into a MySQL friendly format. Passing the timestamp to the date() function makes this easy:

    echo date("Y-m-d H:i:s", 1336035600);
    

    Or use the DateTime object:

    $date = new DateTime(1336035600);
    echo $date->format('Y-m-d H:i:s');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a mysql database from which i require an rss feed of its
I have an XML file taken from an RSS feed, saved locally, and I
I have a requirement to grab images from an rss feed and display these
I have an Objective C application that reads data from an RSS feed using
I have a RSS with: <pubDate>Fri, 20 Apr 2012 08:00:00 GMT</pubDate> And validator said
I have an RSS feed from Zendesk (http://mysupport.zendesk.com/forums/some-path/posts.rss) that I need to render as
I have the following data being generated from a google spreadsheet rss feed. いきます,go,5
i have wrote an app getting rss feed from the website of my university.in
I have a string I have parsed from a RSS feed thumbnail url='http://photos3.media.pix.ie/11/C5/11C5B77C92204ADBBD0CF5FDF4BA351B-0000314357- 0002211156-00240L-00000000000000000000000000000000.jpg'
I have a html output I'm pulling from a RSS feed, it is somethig

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.