RE: [PHP-DB] redirect a page

2002-04-24 Thread John Hughes
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

RE: [PHP-DB] redirect a page

2002-04-24 Thread Rankin, Randy
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