If you really want to redirect and not just display a message that no
records were found, then this will work:
$num = mysql_numrows($result);
if ($num == 0)
{
header("Location: sorry.php");
exit;
} ELSE {
while ...
--- "Rankin, Randy" <[EMAIL PROTECTED]> wrote:
> Nato,
>
> Try somethi
Nato,
Try something like this:
$num = mysql_numrows($result);
if ($num == 0)
{
echo "There were no records found.";
}
else
while ...
-Original Message-
From: Natividad Castro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 11