"No listings" link code
6 posts by 3 authors in: Forums > CMS Builder
Last Post: November 14, 2008 (RSS)
<?php elseif (!$featured_carsRecords): ?>
<table width="525" border="0" cellspacing="1" cellpadding="5">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"><font size="3" face="arial"><b>Sorry, No listings were found that matched your search query.<br/>
Please try your search again.</b></font><br/>
</td>
</tr>
</table>
<?php endif ?>
Re: [WEVOLUTIONS] "No listings" link code
By Dave - November 12, 2008
interactivetools.com
Re: [Dave] "No listings" link code
Re: [WEVOLUTIONS] "No listings" link code
By Kenny - November 13, 2008
<?php if ($record['content']): ?>
***Insert html code here***
<?php else: ?>
<script>document.location.href='page2.php'</script>
<?php endif ?>
It may or may not be the best option, but right off the top of my head, it would work.
Kenny
Re: [WEVOLUTIONS] "No listings" link code
By Dave - November 14, 2008
<?php
if (!$featured_carsRecords) {
header("Location: http://www.example.com/newurl.html");
exit;
}
?>
Hope that helps!
interactivetools.com
Re: [WEVOLUTIONS] "No listings" link code
By Kenny - November 14, 2008
As Dave said - make sure it goes before any HTML or it won't work.
Thanks Dave for the code!