Includes, Require, Location, Other

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

If I were to have something like the following, what is the best way (or
best practice) to reload the page and display the error - or is there a
better way to do this. I want to keep the site uniform and don't want errors
popping up and making a mess.

Thanks

B

---------------------

	$query = "select idn, name from manager order by name";
	$results = mysql_query($query) or $mysqlerror = mysql_error();
	if ($mysqlerror) { 
    	$error = "$table_error$mysqlerror";
		include("season.php"); - This is not what I really want and
in 								 some cases
it cause problems.
		exit;
	}	
	else {	
		The rest of the code....
	}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux