View Single Post
  #4  
Old 02-20-2008, 09:33 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: adding custom sql

Quote:
Originally Posted by mangoboom
Hi

i wanted to add a list of my categories in a x cart page (.tpl file), i wanted to pull the categories out of the xcart_categories table, i tried using a PHP/MySQL connect, but that did not work, does anyone if x cart has it's own "special" code to connect to the database or some code to query the database?

thanks

The categories array should be available to you throughout the cart - just loop through that instead of trying to add yet one more array to what is in memory.
Reply With Quote