in reply to Checkboxes into an SQL Select query
If have tried using:The "push" function needs one or more args after the array, which would be the value(s) to be pushed onto the array. Your push statement there (with just the array alone) is not doing anything at all. (Was that a copy/paste error in creating the post, or did you really miss that point in the original code?)if (exists $fd{chk1} ) { push @columns }
Update: As for your other attampt:
if ($fd{chk1} eq "Listname") { $columns = $db->quote($fd{$_}) .","; }
That doesn't quite make sense either, because the "if" condition is testing $fd{chk1} but the assignment statement inside the block is referring to $fd{$_} -- and you haven't shown anything to suggest that $_ would actually equal "chk1" at that point (it probably does not).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checkboxes into an SQL Select query
by Quicksilver (Scribe) on May 31, 2007 at 08:55 UTC |