Includes, Require, Location, Other

From: Date: Sun, 18 Jun 2006 15:33:01 +0000
Subject: Includes, Require, Location, Other
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238230@lists.php.net to get a copy of this message
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.... }

« previous php.general (#238230) next »