Wordpress Date Question

3 replies
Alright guys

You know when you go and add blog post, you can choose to publish that post now, or an earlier, or later date.. This is done by selecting the day, month, year.. Then it is stored under the post_date field on the database..

How is that possible? I mean how do you stored seperate form information in one field on the database?

I am trying to do the same for my membership script..

I have created one field called it product_date. I have made it to be date format.. But I am now thinking about creating the form selection parts.. I can create those bit, but to get all that information read into one field, is a little bit mind puzzling...
#date #question #wordpress
  • Profile picture of the author customertools
    You really need to learn some things about MySQL to be able to do that...
    You don't get it all to read into one field. It's all read from 1 record which has multiple fields in it. You read the record in then output the data from that record number. (I'm probably using the old terminology to describe this.)

    I really suggest getting the Lynda.com PHP and MySQL Essentials training, it will explain what you need to know. (Or and good MySQL video tutorial) Lynda.com is worth every penny of a month's subscription cost. (all you need to get is 1 month, watch the videos, follow along, you don't need the source code, as you will be able to get by without it.)

    -Brad
    {{ DiscussionBoard.errors[1690190].message }}
    • Profile picture of the author Byron_Wells
      Originally Posted by customertools View Post

      You really need to learn some things about MySQL to be able to do that...
      You don't get it all to read into one field. It's all read from 1 record which has multiple fields in it. You read the record in then output the data from that record number. (I'm probably using the old terminology to describe this.)

      I really suggest getting the Lynda.com PHP and MySQL Essentials training, it will explain what you need to know. (Or and good MySQL video tutorial) Lynda.com is worth every penny of a month's subscription cost. (all you need to get is 1 month, watch the videos, follow along, you don't need the source code, as you will be able to get by without it.)

      -Brad
      Brad

      You do get it to read in one field...
      {{ DiscussionBoard.errors[1691356].message }}
  • Profile picture of the author customertools
    You get the result from reading in a record. Here's more information at php.net on this.
    PHP: mysql_result - Manual
    {{ DiscussionBoard.errors[1691661].message }}

Trending Topics