first off, it's kinda anoying to get a topic asking something without telling what it is in first place...
now, what you want is rather simple...
first you should make an array like
$banners = array (
array ('name' => 'your site here','link' => '<banner exchange link>'),
array ('name' => 'your site here','link' => '<banner exchange link>'),
array ('name' => 'your site here','link' => '<banner exchange link>'),
array ('name' => 'your site here','link' => '<banner exchange link>'),
array ('name' => 'your site here','link' => '<banner exchange link>')
);
obviously, you can use a loop to make it more professional:
for ($x = 0;$x < 5;$x++){
$banners[] = array ('name' => 'your site here','link' => '<banner exchange link>');
}
THEN you start setting the data on the banners, like this:
$count = 0;
while ($row = mysql_fetch_assoc ($result)){
$banners[$count]['name'] = $row['name'];
$banners[$count]['link'] = $row['link'];
$count++;
}
with this you should have set the banners with the remaining slots replaced with "Your site here". I did this by assumtion, it would be better if I could take a look at the code and links table structure