Re: Getting Output for 'do' Query.

2007-06-30 Thread Ricky Zhou
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > my $query = qq|SELECT SUM(MINS) FROM files WHERE USER='$user'|; > my $do = $dbh->do($query); > print "$do"; > > Where MINS is integar, Now when I print $do it obviously prints only '1', > marking return of the query. 1

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