Thread: SQL question

Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 68
  1. #11
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: SQL question

    Someone must be able to help?

  2. #12
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: SQL question

    Someone must be able to help?
    Whhile you know what it is that you want, it is not clear to others

    Your OP asked for one thing, and this has escalated into something else

    i.e.
    What page you want this
    What customer action will trigger it
    What file(s) are you thinking of adding it to
    How it is to be displayed
    etc etc

    As I stated earlier
    If in the cart please explain in much more detail what it is you are seeking

    We can not read your mind and even though it is clear to you it is not from what you have provided clear to anybody else

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

    Default Re: SQL question

    There may not be enough information in the OP's posts to completely create his functionality, but the SQL to get the info requested from the db should be straightforward for those who are good with MySQL.

  4. #14
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: SQL question

    Quote Originally Posted by gjh42
    There may not be enough information in the OP's posts to completely create his functionality, but the SQL to get the info requested from the db should be straightforward for those who are good with MySQL.
    Fully agree but almost knew that just the sql was not what was wanted
    And why I asked
    Quote Originally Posted by kobra
    And is this to be included as some feature in the cart or only for you?
    And the poster figured out that they also needed some php/mysql code but no idea given as to what or where this was to be used/displayed
    Quote Originally Posted by DigitalShadow
    I need a php code to make that work

  5. #15
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: SQL question

    I've got the sql code to work in phpmyadmin, what i need is the code to work in the shop front.

    SELECT DISTINCT products_model_number FROM `zen_products_description`

    All i need is to display the results on the shop front.

    What code should i write to that that will display on the shop?

  6. #16
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: SQL question

    What code should i write to that that will display on the shop?
    Back to my original post - you will have to much more specific about where you want this displayed as "display on the shop" is a lot of different pages

  7. #17
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: SQL question

    An EZPage would probably be the best place to put the generated list.

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

    Default Re: SQL question

    Standard Zen Cart ez-pages don't handle PHP, so you would have to do some tricky customizing to get that to work.
    Define pages do handle PHP, so you might make a new page for your content - see the "About Us page" mod in Free Addons.

  9. #19
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: SQL question

    Ok, lets say I create a new define page for the list, which isn't a problem.

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

    Default Re: SQL question

    Search in Tools > Developers Toolkit for
    $db->Execute(
    and go to some of the files listed. You will see examples of SQL queries being handled in various ways.

    When you assign the result to a variable, you can then use or display that variable's contents in standard PHP ways.

 

 
Page 2 of 7 FirstFirst 1234 ... LastLast

Similar Threads

  1. v154 SQL Script Question
    By Feznizzle in forum General Questions
    Replies: 2
    Last Post: 2 Jul 2015, 07:13 PM
  2. SQL question
    By timhersh in forum General Questions
    Replies: 14
    Last Post: 1 Oct 2012, 10:12 PM
  3. SQL question
    By pixelpadre in forum General Questions
    Replies: 9
    Last Post: 26 Apr 2012, 02:14 PM
  4. v139h SQL question... help please!
    By Feznizzle in forum General Questions
    Replies: 4
    Last Post: 3 Mar 2012, 10:31 PM
  5. SQL Question Deleting zones
    By kitcorsa in forum General Questions
    Replies: 2
    Last Post: 12 May 2008, 12:37 PM

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