Re: REG: dbi::errstr error.

2006-01-27 Thread Jonathan Leffler
On 1/27/06, Dilly raja <[EMAIL PROTECTED]> wrote: > > I have a cgi script adduser.cgi which collects the data from the user > through adduser.html. when i execute this script i encountered the error > as > shown below. > > Name "dbi::errstr" used only once: possible typo at adduser.cgi line 18.

Re: dbi::errstr error.

2006-01-27 Thread Ron Savage
On Fri, 27 Jan 2006 10:22:21 -0500, John Scoles wrote: Hi John > $sth->execute()||die "Unable to insert the value: $dbi::errstr\n"; As Andy has pointed out, Perl is a case-sensitive language. What follows is really off topic... > I took the liberty of rewriting part of your code a little so it

RE: dbi::errstr error.

2006-01-27 Thread Andy Hassall
> -Original Message- > From: Dilly raja [mailto:[EMAIL PROTECTED] > > I have a cgi script adduser.cgi which collects the data from the user > through adduser.html. when i execute this script i > encountered the error as > shown below. > > Name "dbi::errstr" used only once: possible typo

Re: dbi::errstr error.

2006-01-27 Thread John Scoles
try $sth->execute() or die "Unable to insert the value: $dbi::errstr\n"; rather than $sth->execute()||die "Unable to insert the value: $dbi::errstr\n"; I took the liberty of rewriting part of your code a little so it is more readable and it is using params. This is a much more secure way to do

REG: dbi::errstr error.

2006-01-27 Thread Dilly raja
I have a cgi script adduser.cgi which collects the data from the user through adduser.html. when i execute this script i encountered the error as shown below. Name "dbi::errstr" used only once: possible typo at adduser.cgi line 18. the complete script of the adduser.cgi is shown below. Since i a