reprade the question - how to transform linked query into array $row
| From: | l Burnerheimerton | Date: | Wed, 29 Dec 2004 14:10:48 +0000 |
| Subject: | reprade the question - how to transform linked query into array $row | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16499@lists.php.net to get a copy of this message | ||
Again, I am new to dataObject so I appreciate your patience and help.
Here's the query:
$frc = new DataObject_Facility_join_owner();
$frc->whereAdd("facilityName LIKE '%Hap%'");
$frc->find();
while ($frc->fetch()) {
$instr =& $frc->getLink('instructor_ID');
$room =& $frc->getLink('room_ID');
$bldg =& $room->getLink('building_ID');
$ent =& $frc->getLink('entity_ID');
echo $frc->facility_ID....;
Intead of echo-ing the output with a while look, I want to end up with an array like the query was
an INNER JOIN and all the data came through in one results set in $row[].
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com