RSS help

14 posts by 3 authors in: Forums > CMS Builder
Last Post: December 15, 2011   (RSS)

Re: [towtimes] RSS help

half of your get records call is for trucks and half for accounts.

That may do it...

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Can I set it up to pull from 2 fields? Most would be from the truck listing but the name of the company has to come from the account listing.

Re: [towtimes] RSS help

By Jason - December 15, 2011

Hi,

If you need to get account record associated with each truck record, just add a query to fetch that record inside your foreach loop.

This example assumes you're using CMSB version 2.08 or higher:

<?php foreach ($trucksRecords as $record): ?>
<?php $account = mysql_get("accounts", $record['accountNum']); ?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/