Should be simple really ?!
On completion of a db search, if the result returns no info, how do I redirect the browser to a different URL ?
Many thanks
Hi,
try following:
$url = "http://www.phpbuilder.com/board/"; header("Location: ".$url);
wizkid
I've managed to get that far already, my problemis that I only want to redirect if the search sends back no content.
I'm guessing that somewhere I need to include a $var and "if" statement, but not sure how this combines with the code you suggest ?
if(@mysql_num_rows($result) == 0) { $url = "http://www.phpbuilder.com/board/"; header("Location: ".$url); } else { // Do something... }