Am Don, 2003-09-18 um 20.36 schrieb Mike Zornek: > I've created a class called university, it has a constructor which can > accept an id. If the id is sent during construction the constructor will > connect to a MySQL db to set all of the objects member variables to the > MySQl counterparts. > > I'd like to include some error notification so if I send it an id and let's > say that record doesn't exist in the db I get some notification and can > write a message out to log (or screen). But what is the best way to do this? > Any recommendations? Tutorials? URLs?
Maybe you'd like to have a look at PEAR error-handling. http://pear.php.net/manual/en/core.pear.php -- Cheers! Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php