...

View Full Version : Sending Perl Variables to mySQL?



madpar3
03-31-2009, 08:55 AM
Hey Everyone,

I need to send perl variables to the mysql database(which is already set up) to be stored. I know how to pass variables from php to mysql, but really need to know how to do it with perl(and therefore avoiding to have to 'convert' 600+ lines of perl code to php). Help?

Thanks.

bazz
03-31-2009, 09:30 AM
can a mod please move this to the perl forum.

OK, firstly, you'll need to connect to the db.
then you'll need to build an insert statement.

post your code so far and I'll see if I can help.

bazz

it career
03-31-2009, 10:31 AM
Hey Everyone,

I need to send perl variables to the mysql database(which is already set up) to be stored. I know how to pass variables from php to mysql, but really need to know how to do it with perl(and therefore avoiding to have to 'convert' 600+ lines of perl code to php). Help?

Thanks.
When you construct the query string , put that perl variable in the query string like "select * from table where id='$perlvariable'" ; ,etc.

madpar3
04-19-2009, 07:56 AM
Hey, I figured it out. Thanks!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum