andrew has asked for the wisdom of the Perl Monks concerning the following question:
I do this and it sets the name to "0" and it wont change the rest??if(param('page') eq "yes") { $dbh->do("UPDATE category SET name='$cat' AND view_cats_prod='yes +' AND description='$des' WHERE id='$id'") or die $dbh->errstr; } else { $dbh->do("UPDATE category SET name='$cat' AND view_cats_prod='no' + AND description='$des' WHERE id='$id'") or die $dbh->errstr; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Somethings not rightwith my MySQL do()
by gav^ (Curate) on Jul 20, 2002 at 01:45 UTC | |
by andrew (Acolyte) on Jul 20, 2002 at 01:51 UTC | |
Re: Somethings not rightwith my MySQL do()
by tstock (Curate) on Jul 20, 2002 at 01:17 UTC | |
by andrew (Acolyte) on Jul 20, 2002 at 01:24 UTC | |
by Fastolfe (Vicar) on Jul 20, 2002 at 01:36 UTC | |
|