Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Aruna Goke
Chris W wrote: I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does an

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Aruna Goke
Chris W wrote: I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does an

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Sean Davis
On Jan 22, 2008 11:11 PM, Chris W <[EMAIL PROTECTED]> wrote: > I have inherited a site written in perl. Recently an intermittent > problem has come up and when users log into the site, they end up seeing > other users data. I personally can not reproduce the problem but it has > happened enough

Intermittent problems accessing MySQL data

2008-01-23 Thread Chris Woodhouse
I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does anyone know of

Intermittent problems accessing MySQL data

2008-01-22 Thread Chris W
I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does anyone know of any

Re: pushing web form params into mysql table

2007-06-29 Thread Sean Davis
Aaron Reist wrote: How I get off this mailing list? I tried the link at the bottom of the message, (many times) but it doesnt seem to work. http://learn.perl.org/faq/beginners-cgi.html#1.2%20%20how%20do%20i%20unsubscribe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: pushing web form params into mysql table

2007-06-29 Thread Aaron Reist
params into mysql table> > Shad Keene wrote:> > Sean,> > > > Thanks...I got it to work. It turned out that I didn't have default> > values for the other columns so it wouldn't enter one column into the> > database w/o default values for the others.

Re: pushing web form params into mysql table

2007-06-28 Thread Sean Davis
> From: /Sean Davis <[EMAIL PROTECTED]>/ > To: /Shad Keene <[EMAIL PROTECTED]>/ > Subject: /Re: pushing web form params into mysql table/ > Date: /Tue, 26 Jun 2007 21:06:47 -0400/ > >Shad Keene wrote: > >> > >>Sean, >

Re: pushing web form params into mysql table

2007-06-26 Thread shadkeene
t; 1KDownload One more quick question...does it matter if I have the "names" from the form (i.e. group title of synregime for values of ET, AT, RI, FLT, CUT) or do I just input the values and mysql puts them in the right group according to the value name. That could be where I'm going wrong. Thanks!! Shad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: pushing web form params into mysql table

2007-06-26 Thread Sean Davis
[EMAIL PROTECTED] wrote: > On Jun 25, 3:19 pm, [EMAIL PROTECTED] (Ricky Zhou) wrote: >> Greg Jetter wrote: >>> my $query = "insert into tablename >>> (atablenaem1,atablename2,atablename3)VALUES($SubjPerform,$somthing2, >>> $somthing3); >>> # insert stuff in the db >>> $dbh->do($query) or die "$DB

Re: pushing web form params into mysql table

2007-06-26 Thread shadkeene
On Jun 25, 3:19 pm, [EMAIL PROTECTED] (Ricky Zhou) wrote: > Greg Jetter wrote: > > my $query = "insert into tablename > > (atablenaem1,atablename2,atablename3)VALUES($SubjPerform,$somthing2, > > $somthing3); > > > # insert stuff in the db > > > $dbh->do($query) or die "$DBI::errstr"; > > To preve

Re: pushing web form params into mysql table

2007-06-25 Thread Ricky Zhou
Greg Jetter wrote: > my $query = "insert into tablename > (atablenaem1,atablename2,atablename3)VALUES($SubjPerform,$somthing2, > $somthing3); > > > # insert stuff in the db > > $dbh->do($query) or die "$DBI::errstr"; To prevent SQL injection, etc. It's strongly recommended that you use place

Re: pushing web form params into mysql table

2007-06-25 Thread Greg Jetter
On Sunday June 24 2007 6:39 pm, [EMAIL PROTECTED] wrote: > This is rather long, but I just posted my old perl script, mysql > table, and my new html form of which I'm trying to pass the values > into the mysql table. I'm digging into mysql now as I was previously > using

pushing web form params into mysql table

2007-06-25 Thread shadkeene
This is rather long, but I just posted my old perl script, mysql table, and my new html form of which I'm trying to pass the values into the mysql table. I'm digging into mysql now as I was previously using a program to pass form values to a .csv spreadsheet, but it was suggested that u

Re: C++ query with mySQL

2006-04-10 Thread Jay Savage
On 4/10/06, Sara <[EMAIL PROTECTED]> wrote: > I have been stuck here, SOS call: > > Using CGI.pm, I have the script calling certain categories from mySQL table. > > my $cat = $q->param('cat'); > my $dbh -> prepare ("SELECT * FROM main WHERE CAT=&#x

Re: C++ query with mySQL

2006-04-09 Thread David Dorward
On Mon, 2006-04-10 at 10:02 +0500, Sara wrote: > Calling the categories starting with PHP and Perl didn't cause any issue, but > when I called the Categories > starting with C_and_C++, nothing was shown because CGI.pm was removing the > characters ++. > I replaced the

C++ query with mySQL

2006-04-09 Thread Sara
I have been stuck here, SOS call: Using CGI.pm, I have the script calling certain categories from mySQL table. my $cat = $q->param('cat'); my $dbh -> prepare ("SELECT * FROM main WHERE CAT='$cat'"); Sample Categories('CAT') are given belo

Re: quote problem and mysql

2005-08-04 Thread Todd W
"Andrew Kennard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > > >my $Vals; >for ( my $i=1;$i<=32;$i++ ) { >$Vals.='?,'; >} >chop $Vals; Ugh. $vals = join(', ', ('?') x 32 ); Ideally, you should have your data in an array, then: my $sql = "IN

Re: quote problem and mysql

2005-07-18 Thread Andrew Kennard
Thanks to you both for your replies GenMainRecData did indeed contain a feature that produced this result ! Regards Andrew "Wiggins d'Anconia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Showalter wrote: >> Andrew Kennard wrote: >> > > [snip] > >> >> No, you shouldn't

Re: quote problem and mysql

2005-07-15 Thread Wiggins d'Anconia
Bob Showalter wrote: > Andrew Kennard wrote: > [snip] > > No, you shouldn't have to do that. Your first approach is correct, so we > need to find out what's going wrong there... > Can you show us GenMainRecData? Are you sure it isn't the culprit here, possibly it is already doing data mungin

RE: quote problem and mysql

2005-07-15 Thread Bob Showalter
Andrew Kennard wrote: > Hi all > > Done lots of googling but this simple thing still has me stumped > > The perl code to insert stuff into an mysql table is this > > my $Vals; > for ( my $i=1;$i<=32;$i++ ) { > $Vals.='?,'; > } Hmm,

Quote problem mySQL

2005-07-15 Thread Andrew Kennard
Hi all Done lots of googling but this simple thing still has me stumped The perl code to insert stuff into an mysql table is this my $Vals; for ( my $i=1;$i<=32;$i++ ) { $Vals.='?,'; } chop $Vals; my @TheRecord=&GenMainRecData(); my $sth = $dbh

quote problem and mysql

2005-07-15 Thread Andrew Kennard
Hi all Done lots of googling but this simple thing still has me stumped The perl code to insert stuff into an mysql table is this my $Vals; for ( my $i=1;$i<=32;$i++ ) { $Vals.='?,'; } chop $Vals; my @TheRecord=&GenMainRecData(); my $sth = $dbh

How to write (and read) bit vector to (and from) MySQL?

2005-06-16 Thread Siegfried Heintze
I'm using the vec feature to create a bit vector and I want to write it to a mysql database. When this did not work using a string field, I tried tiny blob. It is writing some bits. When I get results back, they are not what I started with. Here is my code. Can someone tell me what I am

Re: CGI::SESSION, mysql, storing session data

2004-11-12 Thread Harley Davidson
But you did not post the correction/solution=) sorry about that. The resolution was to re-read the section of the cgi::session documentation which talks about the data table. "Session data is stored in the form of hash table, in key value pairs" I thought that the first argument to the p

Re: CGI::SESSION, mysql, storing session data

2004-11-12 Thread Chasecreek Systemhouse
On Thu, 11 Nov 2004 13:09:58 -0600, Harley Davidson <[EMAIL PROTECTED]> wrote: > problem solved. reading the module docs like a technical manual instead of > a comic strip seemed to help;) But you did not post the correction/solution=) So, others may be doomed to repeat... -- WC -Sx- Jon

re: CGI::SESSION, mysql, storing session data

2004-11-12 Thread Harley Davidson
problem solved. reading the module docs like a technical manual instead of a comic strip seemed to help;) _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- To

CGI::SESSION, mysql, storing session data

2004-11-12 Thread Harley Davidson
Hello, I have to send this from my hotmail account, I apologize in advance if it's completely unreadable;) I am using CGI::Session, storing the session data in mysql. I am able to store the appropriate values into the id and a_session columns. However, I am also trying to store store

Re: CGI scripts, security and MySQL

2004-09-03 Thread Chris Devers
On Fri, 3 Sep 2004, Octavian Rasnita wrote: This might be helpful for more users, because a system admin can create automaticly a special dir where the users can put their config files, and "insert" that file in httpd.conf. After that, every user can create its own config file, with any variabl

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
IL PROTECTED]>; "michael watson (IAH-C)" <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 3:56 PM Subject: Re: CGI scripts, security and MySQL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI scripts, security and MySQL

2004-09-03 Thread Chris Devers
On Fri, 3 Sep 2004, Octavian Rasnita wrote: No, the environment variables are set a single time at the start (or restart) of the web server. Ok, that's what I thought. So in what way does this help manage a pool of several users? This seems to be a solution in search of some other problem... -- Ch

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
- Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "michael watson (IAH-C)" <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 3:31 PM Subject: Re: CGI script

Re: CGI scripts, security and MySQL

2004-09-03 Thread Chris Devers
On Fri, 3 Sep 2004, Octavian Rasnita wrote: You can put something like this, in httpd.conf file: include ...path_to_file And make the directory where sits that file readable only by the root user. Then, in that file, put something like: SetEnv usr user_name SetEnv pass parolissima Those 2 environme

Re: CGI scripts, security and MySQL

2004-09-03 Thread Octavian Rasnita
uot; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 3:08 PM Subject: Re: CGI scripts, security and MySQL > On Fri, 3 Sep 2004, michael watson (IAH-C) wrote: > > > I need to make this secure such that only users I want can use the > > s

Re: CGI scripts, security and MySQL

2004-09-03 Thread Chris Devers
database, and then log-out at the end. What is the best way to do this? I've thought about creating a MySQL user/password for each person who needs to enter data, but I don't want them to have to enter their username and password on every form. I guess what I need is some sort of pers

CGI scripts, security and MySQL

2004-09-03 Thread michael watson (IAH-C)
Hi I need to know what is the accepted way of handling the following. I have a MySQL database, and a host of CGI scripts which present forms to the users as web pages, they fill them in and then the data is written to the database. I need to make this secure such that only users I want can use

Re: OT: mysql vs. postgresql (was: Re: CGI and mySQL book, any recommendation.)

2004-06-02 Thread Bill Jones
Wondering whether MySQL or Postgres is faster (or better) via CGI (which is the topic of this list) is sort of like wondering whether a JAPH which has less characters is in fact faster that longer equivalent code - all without looking at maintenance, ease of use, and understandability. I know

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Camilo Gonzalez
satellite link on a ship this past week, and right now I'm using a 10 cents per minute cellphone modem. When I get back to a free link, I'll post more. But in short, MySQL was great when it was the only game in town. But PostgreSQL has leapfrogged MySQL now in every area including features,

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Randal L. Schwartz
>>>>> "Bill" == Bill Jones <[EMAIL PROTECTED]> writes: Bill> Even Blackboard, a major CMS / distance learning software developer, Bill> abandoned MySQL in favor of baby Oracle. Bill> ("Baby" Oracle is no better than PostgresSQL IMO. Plus Postg

OT: mysql vs. postgresql (was: Re: CGI and mySQL book, any recommendation.)

2004-06-01 Thread Wiggins d Anconia
s list not the beginners-cgi, see: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=3FD34DFD.7080207%40danconia.org > But in short, MySQL was great when it was the only game in town. > But PostgreSQL has leapfrogged MySQL now in every area including > features, perform

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Bill Jones
Greetings =) --- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > The only reason to use MySQL these days is ignorance or legacy. > Even Blackboard, a major CMS / distance learning software developer, abandoned MySQL in favor of baby Oracle. ("Baby" Oracle i

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Octavian Rasnita
Does this mean that PostgreSQL is faster than MySQL? In most simple web applications I could work even with text files databases, so MySQL is very enough. But if PostgreSQL is faster, the situation changes... Teddy - Original Message - From: "Randal L. Schwartz" <[EMAIL P

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Randal L. Schwartz
on a ship this past week, and right now I'm using a 10 cents per minute cellphone modem. When I get back to a free link, I'll post more. But in short, MySQL was great when it was the only game in town. But PostgreSQL has leapfrogged MySQL now in every area including features, performance,

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Shaun Fryer
> >>By the way... it's consensus amongst experts that MySQL has hit > >>nearly end-of-life. If you're starting a new project, use PostgreSQL > >>instead. A real Database... not a database wannabe. > >>The only reason to use MySQL these days is ignora

Re: CGI and mySQL book, any recommendation.

2004-05-31 Thread Wiggins d'Anconia
Paul Archer wrote: Yesterday, Randal L. Schwartz wrote: By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use PostgreSQL instead. A real Database... not a database wannabe. The only reason to use MySQL these days is

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread John Halladay
artz wrote: By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use PostgreSQL instead. A real Database... not a database wannabe. The only reason to use MySQL these days is ignorance or legacy. I've done a quick se

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread Paul Archer
Yesterday, Randal L. Schwartz wrote: > By the way... it's consensus amongst experts that MySQL has hit > nearly end-of-life. If you're starting a new project, use PostgreSQL > instead. A real Database... not a database wannabe. > > The only reason to use MySQL these da

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread Camilo Gonzalez
Randal L. Schwartz wrote: "Remko" == Remko Lodder <[EMAIL PROTECTED]> writes: Remko> I have the book "MySQL and Perl" from Paul Dubois, By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread Octavian Rasnita
From: "Randal L. Schwartz" <[EMAIL PROTECTED]> > Please, never ever post the URL to your website. "Blind leading > Blind" comes to mind. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Well... talking about that saying, I am blind and I have tought other bl

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
>>>>> "Remko" == Remko Lodder <[EMAIL PROTECTED]> writes: Remko> I have the book "MySQL and Perl" from Paul Dubois, By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
> "Luinrandir" == Luinrandir Hernsen <[EMAIL PROTECTED]> writes: Luinrandir> If you are new to perl.. avoid the O'Reilly books... there Luinrandir> are, IMHO, written by PhD's for PhD's This is clearly a minority opinion or a misstated fact. Thank goodness. :) I'm not a PhD, and I write for

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread John Halladay
I learned Perl by reading 'Learning Perl, 2nd ed.' and found it very easy to read - on top of that 'CGI Programming with Perl' is also a good read. I'd suggest you give O'Reilly a try - I don't buy any other publisher for my Linux/Perl books. John Halladay Green Aspen, Inc. Web Development - Serv

RE: CGI and mySQL book, any recommendation.

2004-05-29 Thread John
, 2004 8:32 AM > To: [EMAIL PROTECTED] > Subject: Re: CGI and mySQL book, any recommendation. > > > >>>>> "Sara" == Sara <[EMAIL PROTECTED]> writes: > > Sara> Looking to buy a comprehsive book on CGI and SQL, any > recommendations. > &

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Remko Lodder
Hey Sara, Sara wrote: Looking to buy a comprehsive book on CGI and SQL, any recommendations. I have the book "MySQL and Perl" from Paul Dubois, For me that's an excellent book. Only i have the dutch version so i cant give you the ISBN nr of it. Hopethis helps Thanks, Sara. YW

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Luinrandir Hernsen
Real information to your answer.. I use these... CGI Programming on the world wide web / O'Reilly CGI by example / Niles & Dwight CGI Programming / Hamilton www.MySQL.com If you are new to perl.. avoid the O'Reilly books... there are, IMHO, written by PhD's for PhD's the "Visual" books ," R

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
>>>>> "Sara" == Sara <[EMAIL PROTECTED]> writes: Sara> Looking to buy a comprehsive book on CGI and SQL, any recommendations. In the same section where they have books on "apples and oranges". That is... CGI and SQL (SQL or MySQL? You said both) a

CGI and mySQL book, any recommendation.

2004-05-28 Thread Sara
Looking to buy a comprehsive book on CGI and SQL, any recommendations. Thanks, Sara.

Re: questions about bind_param and mysql trace data included

2004-05-11 Thread Brad Lhotsky
. > > <- dbd_st_execute 0 rows > <- execute= '0E0' at db_load_1-2.pl line 128 > -> bind_param for DBD::mysql::st (DBI::st=HASH(0x8104f14)~0x8104e3c 1 > ''310-673-5515'') > <- bind_param= 1 at db_load_1-2.pl line 122 >

questions about bind_param and mysql trace data included

2004-05-11 Thread smrtalec
erified that the data is correct in '$rh_row->{prop_str_addr}' and that it is quoted but for some reason myql isn't recieving the data any help would be appreciated. <- dbd_st_execute 0 rows <- execute= '0E0' at db_load_1-2.pl line 128 -> bind_param fo

Re: Data dump using perl with mysql won't update

2004-05-06 Thread Paul DuBois
nd undef to the proper parameter. Is that what you're doing, or are you binding something else, such as 0 or the empty string? Have you tried turning on DBI's trace facility to see what's happening? P.S., you don't need the semicolons at the ends of the query strings. That

Re: Data dump using perl with mysql won't update

2004-05-05 Thread smrtalec
> If you want them set to NULL using DBI, you have to bind undef to the > proper parameter. Is that what you're doing, or are you binding > something else, such as 0 or the empty string? > No the initial values in the DB are set to null, with the exception of one field. I'm trying to assign th

Data dump using perl with mysql won't update

2004-05-05 Thread smrtalec
before I begin sorry for the cross post but i'm desperate The routine in question is below. It's pretty straight forward its a series of loops which basically matches the row then dumps data stored in hash ref into the DB. for some reason the script runs with no errors (ran with strict) I can ve

problems parsing datafile into mysql table - help

2004-02-21 Thread smrtalec
I have a script which function is to parse through a comma seperated data file, check if the entry is already existing, then if not enter the data into a mysql table. However, it only seems to be finding a match on the third time around. ie if 'john brown' is in the data file it

Re: MySQL beginner's script

2003-11-22 Thread Teresa Raymond
I finally got the database connected but it won't create the table for me. Can we only create tables at the command line? $sth = $dbh->prepare (CREATE TABLE test (first_field CHAR(10), second_field INT)) or print "Can't create table: " . DBI->errstr; $sth -> execute($test) or print "Can'

Re: MySQL beginner's script

2003-11-22 Thread Wiggins d'Anconia
Teresa Raymond wrote: Hello, I was wondering if anyone could help me solve this problem. The script appears not to be connecting to the database. This script prints "Here we go" but never prints "Database connected". I used the format that the hosting company supplied. "DBI:mysql:$database:loc

Re: MySQL beginner's script

2003-11-22 Thread Oliver Schnarchendorf
On Sat, 22 Nov 2003 10:14:38 -0500, Teresa Raymond wrote: > This script > prints "Here we go" but never prints "Database connected". I used the > format that the hosting company supplied. Teresa, your script seems fine to me... but you might want to read the documentation of the auto-f

MySQL beginner's script

2003-11-22 Thread Teresa Raymond
Hello, I was wondering if anyone could help me solve this problem. The script appears not to be connecting to the database. This script prints "Here we go" but never prints "Database connected". I used the format that the hosting company supplied. "DBI:mysql:$database:localhost","$username","$

CGI::Session and mysql dbh

2003-10-24 Thread perl
If I store a dbh in a session as in, $session->param("DB",$dbh), what happen when the session expire due to expire setting? Will the dbh still be in memory or cleaned up? -thanks - eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [E

SQL -- getting one row problem -- clever mySQL trick

2003-09-29 Thread David Gilden
Hello out there... I wanted to thank everyone who has kindly offered their assistance with my current project. Of course I have more questions, But first I wanted to share how I solved my current issue. It's displays a clever mySQL trick! -- see script below: Dave Gilden ( kora mus

RE: guestbook mySQL / PERL

2003-09-24 Thread Charles K. Clarkson
had to this? # I haven't done DBI much though. my $drh = DBI->install_driver( 'mysql' ); my $dbh = DBI->connect("DBI:mysql:$user_name:$sql_server", $user_name, $user_password); # Do not return this error message in production c

guestbook mySQL deleting and refreshing

2003-09-24 Thread David Gilden
from Ft. Worth, Dave -script to delete records from mySQL database #!/usr/bin/perl -w # update_guestbook.cgi use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use DBI; use strict; my $user_name = "###"; my $user_password = "###"; my $sql_server = &q

guestbook mySQL / PERL

2003-09-24 Thread David Gilden
t){ my $tmp = ($sort_direction) ? (shift @data_out) : (pop @data_out); print $tmp; } # End Table Rows print "\n"; print "\n", end_form, "\n" ,end_html; print "\n"; exit; ## # SUBS ## my $path_to_cgi = "http://##

RE: Guest Book design / mySql / perl

2003-09-19 Thread Wiggins d'Anconia
On Fri, 19 Sep 2003 09:51:20 -0500, David Gilden <[EMAIL PROTECTED]> wrote: > Hello, > > I am taking over a site that was on a M$ server and redoing the Guest book and form > pages > in PERL. Question I have is the design of database. > > I hav

Guest Book design / mySql / perl

2003-09-19 Thread David Gilden
Hello, I am taking over a site that was on a M$ server and redoing the Guest book and form pages in PERL. Question I have is the design of database. I have the following fields: Name varchar(80) Date date email

perl / MySql application overview question

2003-08-14 Thread Hughes, Andrew
I have a multi-table MySQL database that holds different pieces of information that will all be displayed on a web page template. The general principle is that non web people will be able to populate web pages through an admin panel. The data in all of the MqSQL tables will be entered by the

RE: perl / MySql application overview question

2003-08-14 Thread Hughes, Andrew
Thanks for the detailed answer. I have dealt with JOIN clauses briefly in the past, but not in this context. I will have to revisit on my own. As far as grabbing the unique id, I am definitely going to use the DBI module for contacting MySQL. When I am looking at your piece of code, I had a

Re: perl / MySql application overview question

2003-08-14 Thread Wiggins d'Anconia
Hughes, Andrew wrote: I have a multi-table MySQL database that holds different pieces of information that will all be displayed on a web page template. The general principle is that non web people will be able to populate web pages through an admin panel. The data in all of the MqSQL tables will

Dumping data into MySQL

2003-06-10 Thread Bob X
I want to create a very simple backend for a user. Basically a portion of a page will be kept in a database. The user will navigate to a certain page and then Perl will pull the data out of the db in a textfield. The users changes it and hits submit and pop it goes back in. The question is this. C

Re: Inserting data into MySql using perl script

2003-06-10 Thread Kristofer Hoch
bh my $dbh = DBI ->connect('DBI:mysql:database=dnazary_test:hostnamte=localhost', 'root', 'mysql'); open (IFH, $infile) or die ("Could not open input file."); foreach () { # Strict on @fields my @fields = split (/ /, $_); #

RE: Inserting data into MySql using perl script

2003-06-10 Thread Nazary, David
y, June 10, 2003 9:44 AM To: Nazary, David; [EMAIL PROTECTED] Cc: Nazary, David Subject: Re: Inserting data into MySql using perl script On Monday June 9 2003 3:49 pm, Nazary, David wrote: > Hi, > > I am unable to insert data into MySql with following script: > > #!/usr/bin/pe

Re: Inserting data into MySql using perl script

2003-06-10 Thread Greg Jetter
On Monday June 9 2003 3:49 pm, Nazary, David wrote: > Hi, > > I am unable to insert data into MySql with following script: > > #!/usr/bin/perl > use DBI; > use Mysql; > $infile = "/cadfs8/sys/dnazary/mysql_test_data1"; > $dbh = DBI ->connect('DBI:

RE: Inserting data into MySql using perl script

2003-06-10 Thread Nazary, David
Hi Roberto, I made your suggested changes and I got the same error mesage: #!/usr/bin/perl use DBI; use Mysql; $infile = "/cadfs8/sys/dnazary/mysql_test_data1"; $dbh = DBI ->connect('DBI:mysql:dnazary_test;host=localhost', 'root', 'mysql'); open (IFH,

Re: Inserting data into MySql using perl script

2003-06-09 Thread Roberto Ruiz
Hi, On Mon, Jun 09, 2003 at 04:49:41PM -0700, Nazary, David wrote: > > I am unable to insert data into MySql with following script: > > #!/usr/bin/perl > use DBI; > use Mysql; Not needed, you may comment it out. > $infile = "/cadfs8/sys/dnazary/mysql_test_data

Inserting data into MySql using perl script

2003-06-09 Thread Nazary, David
Hi, I am unable to insert data into MySql with following script: #!/usr/bin/perl use DBI; use Mysql; $infile = "/cadfs8/sys/dnazary/mysql_test_data1"; $dbh = DBI ->connect('DBI:mysql:dnazary_test:localhost', 'root', 'mysql'); open (IFH, $infile) or

Perl-MySQL question

2003-06-01 Thread Scot Robnett
If I have a table with date column formatted -00-00, and I want to force a specified date into the column as opposed to just using "now", how would I change the following? Sorry if this is a little off topic but I thought someone here might know. Not a cross-post, I'm not even

Re: MySQL won't GRANT ALL ON cookbook.* ... ERROR 1044

2003-02-24 Thread fliptop
On Sun, 23 Feb 2003 at 20:09, Ed Sickafus opined: ES:Server: Linux (RedHat 7.2) Apache 1.3.x ES:I'm trying to run an introductory exercise out of MySQL Cookbook by Paul ES:DeBois ES:Accessing MySQL from a PC via PuTTY to ISP's UNIX ES:I can get to the mysql> prompt but no further.

MySQL won't GRANT ALL ON cookbook.* ... ERROR 1044

2003-02-23 Thread Ed Sickafus
Server: Linux (RedHat 7.2) Apache 1.3.x I'm trying to run an introductory exercise out of MySQL Cookbook by Paul DeBois Accessing MySQL from a PC via PuTTY to ISP's UNIX I can get to the mysql> prompt but no further. Welcome to the MySQL monitor. Commands end with ; or \g.

Problems installing DBD::Mysql

2003-02-22 Thread Alex Agerholm
Hi Can anybody help me I have a problem installing DBD::Mysql on a windows XP machine. Running ppm install DBD::mysql returns the message "Read a PPD for 'DBD-mysql' but it is not intended for this build of Perl (MSWin32-x86-multi-thread) Thanks Alex -- To unsubscribe,

Re: Error installing DBD::Mysql

2003-01-27 Thread aa
Thanks for pointing me to the right list, to be honest I didnt know which one to post to, And mysql_config is in this location, /usr/local/mysql/bin/mysql_config i.e mysql is in /usr/local/mysql/ is this the 'normal' location? Wiggins D'Anconia wrote: What does this have

Re: Error installing DBD::Mysql

2003-01-26 Thread Wiggins d'Anconia
What does this have to do with CGI?? [EMAIL PROTECTED] would be a better list for this question. However, do you have MySQL installed in an abnormal location, or where is the 'mysql_config' executable on your system? If it is in a "normal" location and you just installe

Error installing DBD::Mysql

2003-01-26 Thread aa
Hi, I am trying to install DBD::Mysql and I am getting error, I am new to perl and modules, here is the screen print, I'll appreciate any help please. CPAN.pm: Going to build J/JW/JWIED/DBD-mysql-2.1024.tar.gz Can't exec "mysql_config": No such file or directory at M

RE: how to print mysql table to text file backup with perl

2003-01-07 Thread fliptop
On Mon, 6 Jan 2003 at 20:44, Hughes, Andrew opined: HA:That makes a lot of sense. If I strip out the pipes, tabs, hard returns HA:etc. going into the database table, do you think that I should be okay not HA:using the module? why waste your time? the csv modules already on cpan do it all for yo

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
, Andrew Cc: [EMAIL PROTECTED] Sent: 1/6/2003 6:21 PM Subject: RE: how to print mysql table to text file backup with perl On Mon, 6 Jan 2003 at 15:11, Hughes, Andrew opined: HA:my $filename = "out.txt"; HA:open(OUTFILE,">$filename"); HA: $stmt = qq { select * from 2002broc

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread fliptop
On Mon, 6 Jan 2003 at 15:11, Hughes, Andrew opined: HA:my $filename = "out.txt"; HA:open(OUTFILE,">$filename"); HA: $stmt = qq { select * from 2002brochurecontest }; HA: $sth = $dbh->prepare ($stmt); HA: $sth->execute (); HA: $count = 0; HA: while (my $row = $sth->fetchrow_hashref()) HA:{

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
|$row->{purchase}\n"; } $sth->finish(); close(OUTFILE); Thanks, Andrew -Original Message- From: LRMK [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 2:16 PM To: Hughes, Andrew; [EMAIL PROTECTED] Subject: Re: how to print mysql table to text file backup wi

Re: how to print mysql table to text file backup with perl

2003-01-06 Thread LRMK
TED]> Sent: Tuesday, January 07, 2003 12:58 AM Subject: how to print mysql table to text file backup with perl > I have a mysql table with about 3000 rows of data on which that I need to > perform a daily backup. Because I am on a shared hosting account I do not > have administrative rights

how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
I have a mysql table with about 3000 rows of data on which that I need to perform a daily backup. Because I am on a shared hosting account I do not have administrative rights to the database. To back it up currently I have a script that prints each line of data to the browser delimited with

Re: mysql

2002-11-07 Thread Wiggins d'Anconia
I agree with what John Herbold already posted but would add: This probably has more to do with your hardware up to a point. Running mysql on a 486 is going to obviously not be as efficient as running it on a dual sun box, etc. In a previous position we ran 50 or so databased sites that ranged

RE: mysql

2002-11-02 Thread Herbold, John W.
are looking for a transaction system with row level locks ect that one would use for a larger and more complex system, lets say for online purchases etc you might want to check into the version of MySQL that they charge a little for. But my understanding is that would be for major systems. I would

mysql

2002-11-01 Thread Admin-Stress
Sorry, another out of topic. Is it safe to use mySQL in cgi? I meant, if my update.pl perl cgi will do this : connect to mysql database insert into table values (values from FORM) ... other tasks ... close What happen if there are, let say 100 people accessing that perl cgi? I meant

  1   2   >