Hi Tina,
How are the stallions linked to the reports? Is it via a list field that uses this system:
http://www.interactivetools.com/kb/article.php?Populate-a-list-field-from-another-section-15
I think you probably need to add a where statement to your cdb-stallion-reports.php file that filters on a particular stallions num value, and then pass a horses num value into the reports page on cdb-listing.php, you could pass the horses num value like this on your cdb-listing.php page:
<?php foreach ($cdb_stallionsRecords as $record): ?>
<table width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="39%" height="30" align="left" valign="middle" bgcolor="#F5EBD2" class="content01bold"><?php echo htmlencode($record['title']) ?></td>
<td width="28%" align="left" valign="middle" bgcolor="#F5EBD2" class="content"><?php echo htmlencode($record['breed']) ?></td>
<td width="16%" align="left" valign="middle" bgcolor="#F5EBD2" class="content"><a href="<?php echo htmlencode($record['ses_url']) ?>" class="captions">Info</a></td>
<td width="17%" align="left" valign="middle" bgcolor="#F5EBD2" class="content"><a href="cdb-stallion-report.php?num=<?php echo $record['num']; ?>" >Report</a></td>
</tr>
</table>
<?php endforeach ?>
To add a count of the total records on your reports page you just need to use the count function on cdb_stallion_reviewsRecords:
count($cdb_stallion_reviewsRecords);
The easiest way to show all of a users reports might be to have a user profile page, where you click on a link and it takes you to a users profile page and shows all of the reviews they have created.
If you would like us to create this system for you, feel free to send an e-mail to consulting@interactivetools.com, and we can give you an estimate of the cost.
The easiest way to import the reports as a CSV might be to use the CSV import plugin, you can read more about it here:
http://www.interactivetools.com/add-ons/detail.php?CSV-Import-1041
Let me know if you have any questions.
Thanks!
Greg
Greg Thomas
PHP Programmer - interactivetools.com