Re: Help with php redirect.

From: Date: Sun, 10 Dec 2006 15:27:22 +0000
Subject: Re: Help with php redirect.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42812@lists.php.net to get a copy of this message
Hi before you can use an 'else' you'd need an 'if' However you can do it without either. Your while will be bypassed if no rows are returned. so after the while add: if ($num == 0){ echo " <tr> <td>No Results found</td> </tr>"; } As for redirection. Doesn't seem to be possible if you've already started outputting the table as your code implies Niel

« previous php.db (#42812) next »