Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2012
    Posts
    8
    Plugin Contributions
    0

    Default beginners questions

    Hey there, I'm a long time lurker, 1st time poster.

    Despite being an inexperienced coder I thought I'd have a crack at creating my very own mod for the zencart community. However, I've come up against first hurdle.

    I thought I understood simple SQL but having a look at category_tree.php I can't figure out why
    c.categories_id
    ptc.category_id

    have c. and ptc. in-front of them. Are they alias or something?

    Where did they come from?

    Sorry for being a noob, looked through SQL manuals but can't spot why

    thanks :)

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

    Default Re: category_tree.php - beginners questions

    Yes, those are abbreviations for the table names.

    If you look at the beginning of that select, you will find something like
    categories c
    or
    TABLE_CATEGORIES . ' c
    which is the assignment.

  3. #3
    Join Date
    Jan 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: category_tree.php - beginners questions

    thank you very much :)

 

 

Similar Threads

  1. Basic beginners help
    By gulotta in forum General Questions
    Replies: 1
    Last Post: 31 Aug 2011, 11:25 PM
  2. Zen Cart book for beginners?
    By Eliberry in forum General Questions
    Replies: 6
    Last Post: 10 Jan 2011, 08:32 AM
  3. Beginners Question
    By stoneroses6300 in forum General Questions
    Replies: 3
    Last Post: 3 Nov 2010, 12:17 AM
  4. is zen cart easy for beginners?
    By dianneo in forum General Questions
    Replies: 6
    Last Post: 5 Jul 2009, 09:26 AM
  5. Beginners Help
    By Donee43 in forum Installing on a Windows Server
    Replies: 8
    Last Post: 29 Aug 2006, 06:39 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