Thanks Dave.
I tried putting the if statement in 2 places. Here is the last I got:
<?php foreach ($contact_usRecords as $record): ? >
<tr>
<td width="11%"><img src="images/clear.gif" / height="2" width="22"></td>
<td width="89%" align="left"><img src="images/clear.gif" / height="4"><br />
<?php if (getNumberFromEndOfUrl()): ?><a href="<?php echo $record['_link'] ?>"><font color="#FFFFFF"><?php echo $record['title'] ?></font></a><?php endif ?><br/>
</td>
</tr>
<?php endforeach; ?>
<?php if (!$contact_usRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
Result: The other submenu did not appear too.
http://www.05.meridianwebdesign.com/contact-us.php .
I tried putting it after the foreach. The same result.