[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error handling with Resultset
Actually... you don't need to error-check the creation of the object. The object error-checks itself to insure
proper initialization and will halt further processing of the page with an error message displayed if there's a
problem.
Whats yur current status btw?
Jason
On Thu, May 27, 1999 at 11:12:32AM -0400, Daniel E. Markle wrote:
> I am doing query's/inserts with the resultset class, and am wondering how the
> errors are returned. Do I do a:
>
> if($rs = new resultset($query, $conn)) {
> print "Error!";
> }
>
> Or something like this:
>
> $rs = new resultset($query, $conn);
> $errors = $rs->errors;
> if($errors) {
> print "Error!";
> }
>
> --
> -------------------
> Daniel E. Markle
> syntax@ashtech.net
> -------------------