Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default How do I get information from the database for my custom reports?

    I'm creating a new page independent of my store. It will reside on the same server. How do I extract information from the database in order to create my own custom reports for the invoices? I want to be able to grab customer information, item information, and so on.

    I'm good with MySQL and PHP, I'm just asking for the logic of this to get me started.

    Thanks!

  2. #2
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I get information from the database for my custom reports?

    Any ideas? Anyone?

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How do I get information from the database for my custom reports?

    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I get information from the database for my custom reports?

    Maybe. Thanks for sharing. How do I know what it does before I install it? The description is quite vague.

  5. #5
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I get information from the database for my custom reports?

    Ok, I looked at the program. It's close, but doesn't have everything I need.

    However, I can build what I need. I just need help getting started. All I need to do is be able to grab information from the database. If I can do it for one variable, I can figure out the rest.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How do I get information from the database for my custom reports?

    If you use that plugin as a base, it'll save you a lot of time and trouble in your learning curve.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: How do I get information from the database for my custom reports?

    Hi OP - did you ever get the data you need? I'm on the same quest as you and am looking at alternatives.

    -AA

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I get information from the database for my custom reports?

    Have you investigated the Sales Report mod referenced earlier?

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: How do I get information from the database for my custom reports?

    Using the mod/plugin as a basis will, as gjh42 and DrByte said previously, help to guide you through how to structure your PHP to gather and display the information you desire. A similar question was asked and answered here (http://www.zen-cart.com/showthread.p...ed-filed-value) about how to retrieve a single value from a single table in the database based on a single condition.

 

 

Similar Threads

  1. v153 Cannot Get Beyond The Database Information Page.
    By chome4 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 13 Jul 2015, 05:37 PM
  2. <a href statement how do I get a url value from the database?
    By suedouglas in forum General Questions
    Replies: 11
    Last Post: 21 May 2015, 11:59 AM
  3. v150 How do I get rid of this 'Market Reports' link in the header?
    By westdh in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2012, 10:52 AM
  4. Replies: 3
    Last Post: 18 Jun 2012, 09:59 AM
  5. How do I get Define Pages to recognize a new page for the Information Box?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 11 Nov 2007, 02:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR