PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Using the data for other php stuff

  1. freiden
    Member

    I'm trying to find a way to use this data for other means.. i.e standard mysql queries.

    For example, If I'm collecting data normally into a table then I am able to do something like this
    Table:
    id - submitted by user id - my order - my side dish
    1 - 54 - Hamburger - Fries
    2 - 34 - Pizza - Spaghetti
    3 - 54 - Soup - Potatoes

    Then I could do simple commands like show all entries from user 54..
    I have a lot of data I'll be collecting, and need to use it on other pages where it will be showing the data from many entries (not just one entry on a page or post). I also need to be able able to use the data to compare it to other tables. Can this type of thing be done or am I better of hard coding my forms? I've tried to search for hooks and things to do it, with no luck

    Thanks!

    Posted 12 years ago on Sunday November 13, 2011 | Permalink
  2. You can access all the data in the form entries. You don't have to go direct to the database either. There are built in functions you can use.

    How about if you start with one example of information being captured, and show us how you want to use it. There are lots of ways to accomplish what you are trying to do. We'll be happy to point you in the right direction.

    Posted 12 years ago on Sunday November 13, 2011 | Permalink
  3. I am assuming when you say "You don't have to go direct to the database either" you are referring to the Entry Object. But from the documentation I am not really sure how to go about using the code there. How do I specify the form id to get to the entry data?

    Posted 12 years ago on Friday December 2, 2011 | Permalink
  4. Yes, the $entry object has access to all the data stored in the entry.

    Can you share an example of what you're trying to accomplish and we can point you to some specific examples? Thank you.

    Posted 12 years ago on Sunday December 4, 2011 | Permalink
  5. Hey Chris, here is my code: http://pastie.org/private/b2g5ptyucvo43j5ftq0na

    Starting at line 104 is where I am working with Gravity Forms. I think I have done a decent job as it pulls everything that I need.

    I also have an AJAX call to a separate PHP file to set the attended? field: http://pastie.org/private/enrfw93yixxtvdlrlub4q

    I would love your input. Thanks!

    Posted 12 years ago on Monday December 5, 2011 | Permalink
  6. @inkdevs, I'm having trouble following that code. Does it do everything you want, or do you need assistance with that still? The code looks good, but I'm unsure of what it should be doing, or if it is working for you. Thanks.

    Posted 12 years ago on Saturday December 10, 2011 | Permalink