From: Matthew M. <ma...@tu...> - 2003-02-11 12:38:05
|
> New to this list and new user of phpwebsite, Welcome :) > Most of errors can be solved by a safe (isset($myvar) && $myvar==123) or > even initialize a default value for each variable. We will be more mindful of this in the future. > A second error is the wrong way to check if a DB::connect successed or > not, instead of checking the message ($db->message), there is a > DB:isError($db): > if(DB::isError($db)){ > echo 'foobar '.$db->message; > } An error class is in the making. It should incorporate the above. > I would like to continue my tests but I actually do not have a lot of > times to debug/fixes others things then the setup itself. No problem. Every little bit helps. Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 phpwebsite.appstate.edu ess.appstate.edu |