Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Developer Guidelines

    Is it the case that we should not longer create queries that are built up from a _POST, but
    rather, build a query that uses a host variable and then uses bindVars to associate the host variable with the _POST value? I'm just trying to understand the change to ot_coupon.ph better.

    Thanks,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Developer Guidelines

    The use of bindVars makes sanitizing data simpler and more reliable.
    There are a number of examples in the code of how this is used.
    Over time all queries will be converted to this format.
    .

    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.

 

 

Similar Threads

  1. From developer to developer ^_^ -- validation class
    By yellow1912 in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 25 May 2009, 04:39 AM
  2. [Proposed] Versioning Guidelines
    By dreamscape in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 27 Feb 2007, 12:08 AM

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