PHP pagination issue writing the output code wrong

I have set up a list, I know the pagination works, but in this last part of this scrip that I am working with, I am having an issue because I know I am writing
the output code wrong in the “Build the Output Section Here” down below wrong. Can someone help me write the php output code correct.

What I am getting right now on a server is: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

///////////////////////////////////// END Pagination Display Setup ///////////////////////////////////////////////////////////////////////////
// Build the Output Section Here

$output = ‘’;
WHILE($rows = mysql_fetch_array($sql1)):

		$id = $rows ['id']                                              
		$cake = $rows ['cake']                                          
		$coffee = $rows ['coffee'];                                     
		$description = $rows ['description'];                       
		$cost = $rows ['cost'];                                       
		$today_special = $rows ['today_special']                
		
		endwhile;

?>

Test Test <?php do { ?>

<?php echo $coffee['description']; ?> <?php echo $coffee ['cost']; ?> <?php echo $coffee ['today_special']; ?> <?php echo $coffee ['lite']; ?> <?php echo $coffee ['dark']; ?>

<?php } while ($coffee=mysql_fetch_assoc($cake))?>

Total Items: <?php echo $nr; ?>

<?php echo $paginationDisplay; ?>
<?php print "$outputList"; ?>
<?php echo $paginationDisplay; ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service