Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [webmaster33] How to highlight incorrectly filled form part?

Quote Reply
Re: [webmaster33] How to highlight incorrectly filled form part? In reply to
You can find the error in GT::SQL::error.

Here's a snippet of code from one of the plugins:

====
if (! $new_table->create()) {
$GT::SQL::errcode ||= ''; #silence -w, ugh.
$GT::SQL::errcode eq 'TBLEXISTS' ? ($message = "Could not create table <B>$table_name</B> (table already exists)\n") :
($error = "Could not create table <B>$table_name</B>: $GT::SQL::error)");
$new_table->set_defaults();
$new_table->save_schema();
};
=====

I'm not sure what errors are trapped, but you do get more information than just "undef" :)


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread How to highlight incorrectly filled form part? webmaster33 5807 Aug 5, 2002, 3:34 AM
Post Re: [webmaster33] How to highlight incorrectly filled form part?
Dafyyd 5622 Aug 5, 2002, 1:35 PM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
pugdog 5708 Aug 5, 2002, 3:55 PM
Thread Re: [pugdog] How to highlight incorrectly filled form part?
webmaster33 5563 Aug 6, 2002, 2:55 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
Paul 5667 Aug 6, 2002, 3:15 AM
Thread Re: [Paul] How to highlight incorrectly filled form part?
webmaster33 5602 Aug 6, 2002, 3:47 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
Paul 5560 Aug 6, 2002, 3:56 AM
Thread Re: [Paul] How to highlight incorrectly filled form part?
webmaster33 5556 Aug 6, 2002, 4:35 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
Paul 5586 Aug 6, 2002, 5:17 AM
Thread Re: [Paul] How to highlight incorrectly filled form part?
webmaster33 5563 Aug 6, 2002, 5:49 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
Paul 5575 Aug 6, 2002, 5:56 AM
Post Re: [Paul] How to highlight incorrectly filled form part?
webmaster33 5489 Aug 6, 2002, 6:46 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
pugdog 5541 Aug 6, 2002, 7:19 AM
Thread Re: [pugdog] How to highlight incorrectly filled form part?
webmaster33 5549 Aug 6, 2002, 9:05 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
pugdog 5491 Aug 6, 2002, 1:10 PM
Post Re: [pugdog] How to highlight incorrectly filled form part?
Ian 5517 Aug 6, 2002, 2:22 PM
Post Re: [pugdog] How to highlight incorrectly filled form part?
webmaster33 5455 Aug 7, 2002, 7:10 AM
Thread Re: [webmaster33] How to highlight incorrectly filled form part?
yogi 5448 Aug 7, 2002, 5:37 AM
Post Re: [yogi] How to highlight incorrectly filled form part?
webmaster33 5478 Aug 8, 2002, 1:21 AM