
Jason
Staff
/ Moderator

Jan 24, 2012, 9:59 AM
Post #2 of 5
(623 views)
Shortcut
|
|
Re: [northernpenguin] Display Upload Files - DragSortOrder
[In reply to]
|
Can't Post
|
|
Hi Ragi, So what you need to do is start by only getting the first record from your record set: example:
list($newsRecords, $newsMetaData) = getRecords(array( 'tableName' => 'news', )); $newsRecord = @$newsRecords[0]; //retrieve the first record from the record set Next, if you were able to get a record, attempt to get the first upload from that record. example:
<?php if (@$newsRecord['uploads']); ?> <?php $upload = $newsRecord['upload'][0]; // get first upload ?> // output $upload here <?php endif ?> Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|