Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default need help with addresses

    please help with this:

    I need a database query to give me the following:

    1. mr/mrs
    2. first name
    3. last name
    4. address 1
    5. address 2
    6. City
    7. State
    8. Zip
    9. Country


    Any help with this please
    Thanks,
    KWW

  2. #2
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    any help with this???
    Thanks,
    KWW

  3. #3
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: need help with addresses

    How are you wanting to use this?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  4. #4
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: need help with addresses

    I don't know how you want to restrict this query, but all of the information that you are looking for is in the address_book table. I would do a select all from address_book where customers_id is the person you are looking for.
    [FONT=Lucida Console]-Ben [/FONT][FONT=Lucida Console]www.NewLeafInternet.com[/FONT]

  5. #5
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    I am using 1.3.5, it shows the entry id, but not the state.

    Example:

    Entry ID: 51, State:Nothing Listed in the DB
    Thanks,
    KWW

  6. #6
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    I want to use this to generate a mail merge list, of the newletter subscribers, so that I can send them my newletter in the mail.
    Thanks,
    KWW

  7. #7
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    I need a specific query to get the info I need
    Thanks,
    KWW

  8. #8
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: need help with addresses

    How about something like this:
    http://www.zen-cart.com/forum/showth...949#post249190

    ... with an additional entry in your WHERE clause about
    [FONT="Courier New"]c.customers_newsletter = 1[/FONT]
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  9. #9
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    kind of hard to follow.....the problem is this:

    Address_book table has states in as #'s not as state names, so i need to reference the zone table as well.....entry_code.

    I was hoping for a complete query to do this.....
    Thanks,
    KWW

  10. #10
    Join Date
    Oct 2005
    Posts
    268
    Plugin Contributions
    0

    Default Re: need help with addresses

    ok, i tried the query, but i got an error saying: bad handshake
    Thanks,
    KWW

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding 2000 shipping addresses - import or manual?
    By fideaux64 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 8 Feb 2007, 11:21 PM
  2. Email Addresses Archived?
    By lhhgbh in forum General Questions
    Replies: 0
    Last Post: 10 Jan 2007, 12:34 AM
  3. Exporting email addresses
    By optipac in forum General Questions
    Replies: 0
    Last Post: 13 Oct 2006, 08:18 PM
  4. site email contact form not sending to certain email addresses
    By chief_wiggum in forum General Questions
    Replies: 1
    Last Post: 29 Aug 2006, 03:56 PM
  5. Encrypting (hiding) Email addresses
    By Peace Freak in forum General Questions
    Replies: 2
    Last Post: 26 May 2006, 01:58 PM

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
  •