Re: MySQL with perl error

2001-07-04 Thread Michael Ott
hallo! With reference to Dawn H on 04.07 00:36: > The error log says, > > Can't call method "do: on an undefined value. . . > > But the EXACT SAME code works on another script I'm running. I don't see any > reason for it to suddenly have a problem. What does this error message MEAN? > > Co

RE: MySQL with perl error

2001-07-04 Thread Sherzod Ruzmetov
The only reason why that might happen (assuming it is working somewhere else), the object isn't return. So connect() constructor couldn't return the object. To read the error message from DBI, you'll have to read $DBI::errstr: my $dbh = DBI->connect(dsn, login, password) or die $DBI::errstr;

RE: MySQL with perl error

2001-07-03 Thread Dawn H
The error log says, Can't call method "do: on an undefined value. . . But the EXACT SAME code works on another script I'm running. I don't see any reason for it to suddenly have a problem. What does this error message MEAN? Code Snippet-- # Form was okay; get image type and cont

Re: MySQL with perl

2001-06-07 Thread Eric Fitzgerald
so has the unique ability that you can go back and forth in the browser all you want (no back button woes). - Original Message - From: "Pete Kuczynski" <[EMAIL PROTECTED]> To: "MySQL Email List" <[EMAIL PROTECTED]> Sent: Thursday, June 07, 2001 8:32 AM Subject:

Re: MySQL with perl

2001-06-07 Thread Pete Kuczynski
I overcame this by adding to my php script, something that goves the user the results, summerised, of what they added to the database, thus when hitting refresh, it just refreshes the results of what the php script returned, not what they submitted. My php script is below. Pete ");

Re: MySQL with perl

2001-06-06 Thread hooker
OTOH, if you use mod_perl, *all* scripts are cached. That way you can have a single script per function, which makes each smaller and simpler to debug. Paul Wilson iiNet Ltd > Cindy, read my reply to this. You are mistaken. There is actually a way > to make a single script do all kinds of d

Re: MySQL with perl

2001-06-06 Thread Kenneth Kopelson
Cindy, read my reply to this. You are mistaken. There is actually a way to make a single script do all kinds of different operations. I have single scripts that show a list of records, add a new record, update a record, and delete a record, all in the same script. This is more efficient to

Re: MySQL with perl

2001-06-06 Thread Kenneth Kopelson
You need to have your script operate in different modes. You do this by passing an argument when you call your script to tell the script what it is supposed to do. So in this case, if the script is called with out any arguments, it will display the form, as follows: http://www.sample.com/sam

Re: MySQL with perl

2001-06-06 Thread Peter Billson
> When a person submits a form that inserts a record into the database, if > they then refresh the page that comes up after the submit, the record will > be submitted a second time. I suppose this is due to the fact that the > subroutine that is called with the submit contains both the write to >

Re: MySQL with perl

2001-06-06 Thread Cindy
"Dawn H" writes: >I've written a couple of scripts and have a thing that I haven't quite >figured out. If anyone can shed light on this, I'd appreciate it. > >When a person submits a form that inserts a record into the database, if >they then refresh the page that comes up after the submit,