Sorting Get{Child}List

2 views
Skip to first unread message

bobcfrog

unread,
Jul 8, 2008, 10:48:14 AM7/8/08
to Php Object Generator
Hello,

I am stuck please help!

I can retrieve a childlist just fine with

$photoList = $tour->GetPhotosList();

However, I need the results sorted by a field, let's say the field is
called "foo"

I can't figure out how to call the function and have the results
sorted...

I've tried...
$photoList = $tour->GetPhotosList("","foo");
$photoList = $tour->GetPhotosList(null,"foo");
$photoList = $tour->GetPhotosList(array(),"foo");

These all return:"Warning: mysql_fetch_assoc(): supplied argument is
not a valid MySQL result resource in /home/prome6/public_html/prt/
objects/class.database.php on line 42"

Any help would be greatly appreciated!
POG is awesome!



bobcfrog

unread,
Jul 8, 2008, 4:32:00 PM7/8/08
to Php Object Generator
Nevermind.. i got it..

$photoList = $tour->GetPhotosList("","photos.foo");


//onward!
Reply all
Reply to author
Forward
0 new messages