develooper Front page | perl.beginners | Postings from April 2002

RE: simple problem

Jones Robert Contr TTMS Keesler
April 29, 2002 09:14
RE: simple problem
Message ID:

  That part looks fine.  Shouldn't there be more code than this?  Where's
the code that pulls the form values?  Are the values already put into the
database and you're trying to retreive them from there?  Do you see the
values in the database to ensure they are getting there correctly?  Is this
the only value in your table, or shouldn't there be a where clause?
Shouldn't that be:

    if ($tablename) {

-----Original Message-----
From: Sun-hee Kim []
Sent: Monday, April 29, 2002 10:58 AM
To: Jones Robert Contr TTMS Keesler; Sun-hee Kim;;
Subject: Re: simple problem

Here's the code:

if ( $tablename > 1){
$sth = $dbh->prepare("SELECT * from $tablename") || die "3: " .
while (my @data = $sth->fetchrow_array){

Sorry about that

On Monday 29 April 2002 08:50 am, Jones Robert Contr TTMS Keesler wrote:
> No code,
>   No help
> -----Original Message-----
> From: Sun-hee Kim []
> Sent: Monday, April 29, 2002 10:51 AM
> To:;
> Subject: simple problem
> Hi,
> I 'm trying to pull information from a form using mysql and perl.  The
> has radio buttons and when i try to get the information that is selected
> for
> some reason its not getting it.  I was trying to say  for example if i
> select
> this option then grab all the information from that table using a select
> stmt
> and then put it in an array.  I was wondering if anyone could give me any
> ideas.
> thanks for any responses
> Sun-hee Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About