
ryan_dot
User
Oct 10, 2008, 2:32 PM
Post #3 of 9
(2879 views)
Shortcut
|
|
Re: [Dave] where filter that uses a field name?
[In reply to]
|
Can't Post
|
|
Hi Dave, i thought i had it but i've still got an issue Can you see what im doing wrong? I have two tables one for services and one for courses and im trying to include courses that relate to that services in a kind of sub section at the bottom of the services page. http://www.itsplanttech.com/plant-training-services/display.php?Plant-Training-1§ion=Plant%20Training As you can see it will display the courses but will not display anything but the first service record from services. Any ideas, <?php /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */ require_once "/home/content/i/t/s/itsplanttech/html/cmsadmin/lib/viewer_functions.php"; list($plant_training_servicesRecords, $plant_training_servicesMetaData) = getRecords(array( 'tableName' => 'plant_training_services', //'where' => whereRecordNumberInUrl(1), // 'limit' => '1', )); $plant_training_servicesRecord = @$plant_training_servicesRecords[0]; // get first record list($coursesRecords, $coursesMetaData) = getRecords(array( 'tableName' => 'courses', )); ?> http://www.westendpropertysales.com http://www.eadiemcfarland.co.uk http://www.macneanrestaurant.com http://www.theclocktower.ie
|