Maxipoint Rep Office wrote:
I am successful insert data in MySQL with code below:
Message from comp.lang.perl.misc forwarded FYI:
Original Message
Subject: Re: create connection from html form into insert MySQL data
script
Date: Wed, 08 Sep 2004 03:14:12 +0200
From: Gunnar Hjalma
I think he is from Croatia. moreover in the last part of this message I
think what he is pretending is to accomplish a better way of inserting
into the database.
I think that one of his goals is to avoid the use of the variable names
when inserting I believe that he pretends to catch the values
-Original Message-
From: Charles K. Clarkson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 1:06 AM
To: 'Maxipoint Rep Office'; [EMAIL PROTECTED]
Subject: RE: create connection from html form into insert MySQL data script
Maxipoint Rep Office <[EMAIL PROTECTED]> wrote:
:
Maxipoint Rep Office <[EMAIL PROTECTED]> wrote:
: I am successful insert data in MySQL with code below:
I am having trouble understanding your message. I assume
English is not your first language.
: #!/usr/bin/perl -w
: use strict;
Great start!
: use DBI();
: use CGI;
: use HTML::Templ
On Tue, 7 Sep 2004, West, William M wrote:
There's all kinds of edge cases that would have to be dealt with here. I
really think that putting the XML directly into a command line is doomed
to failure; putting it in a temp file should be much more robust.
i agree.. but the above might work for this
willy
http://www.hackswell.com/corenth
>
>> #try this: system("echo \'$xml\' | myprogamname")
>>
>> \ i haven't tried it, but it
>> should keep the shell from interpolating the xml data
>
>But what happens if the XML has a
I am successful insert data in MySQL with code below:
#!/usr/bin/perl -w
use strict;
use DBI();
use CGI;
use HTML::Template;
# Connect to the database.
my $dbh = DBI->connect("DBI:mysql:database=MYDABASE;host=localhost",
"MYDBUSERNAME", "MYPASS",
> On Tue, 7 Sep 2004, Francesco del Vecchio wrote:
>
> > I've got a weird problem using an external program that get the input
> > from "stardard input"
> >
> > I've got to call it (and easily do this with "system('myprogramname')"
> > but I've to feed this program with an XML file that generall
On Tue, 7 Sep 2004, West, William M wrote:
One way to do this -- probably not a good one -- might be
system("echo $xml | myprogamname")
but if there's anything in the XML that the shell finds interesting,
this could fail in all kinds of spectacular ways.
#try this: system("echo \'$xml\' | mypro
On Tue, 7 Sep 2004, Geetha B wrote:
($session, $error) = Net::SNMP->session(
-hostname => shift || 'localhost',
-community => shift || 'public',
-port => shift || 161
);
It may be a dead end, but it may help to define these items as temp
variables, and then throw in a print sta
>
>
>One way to do this -- probably not a good one -- might be
>
> system("echo $xml | myprogamname")
>
>but if there's anything in the XML that the shell finds interesting,
>this could fail in all kinds of spectacular ways.
#try this: system("echo \'$xml\' | myprogamname")
On Tue, 7 Sep 2004, Francesco del Vecchio wrote:
I've got a weird problem using an external program that get the input
from "stardard input"
I've got to call it (and easily do this with "system('myprogramname')"
but I've to feed this program with an XML file that generally is
passed via standar
On Tue, Sep 07, 2004 at 03:06:32PM +0200, Paul Johnson wrote:
> On Tue, Sep 07, 2004 at 01:38:57PM +0200, [EMAIL PROTECTED] wrote:
>
> > Suggested correction to perlintro in perl v5.8.1.
> Thanks. I suspect the RE should have been /([EMAIL PROTECTED])@(.+)/ and I will
> forward such a patch to
On Tue, Sep 07, 2004 at 01:38:57PM +0200, [EMAIL PROTECTED] wrote:
> Suggested correction to perlintro in perl v5.8.1.
>
> Now:
>if ($email =~ /([EMAIL PROTECTED])+@(.+)/) {
>print "Username is $1\n";
>print "Hostname is $2\n";
>
From: Francesco del Vecchio <[EMAIL PROTECTED]>
> I've got a weird problem using an external program that get the input
> from "stardard input"
>
> I've got to call it (and easily do this with "system('myprogramname')"
> but I've to feed this program with an XML file that generally is
> passed via
Hi,
Suggested correction to perlintro in perl v5.8.1.
Now:
Parentheses for capturing
As well as grouping, parentheses serve a second pur
pose. They can be used to capture the results of
parts of the regexp match for later use. The results
end up in
> > Hello there,
> > one brief question: needs UnixODBC the DBI or is it totally
> > indipendent?
> >
> > Gruss Christian
>
> DBI are Perl related. unixODBC it's a C library.
Sure, but there is also a perl-Module.
http://search.cpan.org/~rkies/UnixODBC-0.32/UnixODBC.pm
And so I ask, is there a
hi to all,
I've got a weird problem using an external program that get the input from "stardard
input"
I've got to call it (and easily do this with "system('myprogramname')" but I've to
feed this
program with an XML file that generally is passed via standard input with a "filename |
myprogramna
18 matches
Mail list logo