Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default my Custom code is throwing an error

    i hope this isn't asking too much, but what is wrong w/ my PHP?, it is throwing an error. i've added this to the tpl_index_product_list.php

    $catId = substr($_GET['cPath'], 0, 1); //Returns a single INT, a categorie_id

    // this SQL statement reads correctly i'm pretty sure
    $sql = 'select * from categories_description where categorie_id = '. $catId;

    //this throws an error
    $cat_info = $db->Execute($sql);

    i really appreciate all the help i've gotten on this Forum!

  2. #2
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: my Custom code is throwing an error

    I found it, sorry for the post. i was leaving the 's' off of categories.

    it's usually the small stuff, ...geeze

 

 

Similar Threads

  1. Parse error: syntax error, unexpected '{' in my custom php code
    By claudiapsp in forum General Questions
    Replies: 2
    Last Post: 27 Mar 2014, 03:53 PM
  2. Updating Customer Orders Throwing an error
    By Mike_Dean in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2009, 09:57 PM
  3. Define Pages Editor throwing error
    By micadelic in forum General Questions
    Replies: 4
    Last Post: 13 Aug 2009, 12:39 PM
  4. $db->Execute throwing error
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 May 2008, 10:51 PM
  5. paypal express throwing PHP error?
    By SarahL in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Nov 2007, 02:38 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