Tags:
create new tag
, view all tags

Question

hello everyone,

I am using DatabasePlugin and able to insert the rows successfully in the database mysql.

my requirement :

1) whenever user is adding the duplicate row to the database , then i should get a message as "this record already existed the database "

how to catch the error message given by the database and display our own message to the user...

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: red hat linux
Web server: apache
Perl version: 4.2
Client OS:  
Web Browser:  
Categories: Javascript

-- SudhakarReddy - 28 May 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 02 Aug 2008

 
Change status to:
Topic revision: r2 - 2008-08-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.