T
tsheets
I am new to perl, and expecially dbi, but am trying to figure the best
way to accomplish the following:
I have an HTML form, that lets the user select which fields to include
in the results. Also, a text box for the where clause.
for example, the table contains firstname, lastname, phone, address, and
zip.
Lets say you only want firstname, lastname, and zip (checkboxes), where
lastname = smith.
So far, I have been able to figure out which boxes are checked, and
store that in a variable to pass to the select statement, and build the
resulting HTML table with the correct headings. But, I am not sure how
to go about processing only the fields selected with the data returned
from the query.
I have read several examples, and the perldoc, but about the closest
thing I have understood is getting the entire row, and only printing out
the interesting fields. Is this my best bet, or am I just not
understanding something (like bind_columns maybe)? The fact that any
number or combination of boxes can be checked really has me stumped.
I would love to post some code to clarify, but I haven't gotten far
enough to even do that!!
Also, if there's a more appropriate group, feel free to point me in the
right direction.
Thanks for your help.
Tim
way to accomplish the following:
I have an HTML form, that lets the user select which fields to include
in the results. Also, a text box for the where clause.
for example, the table contains firstname, lastname, phone, address, and
zip.
Lets say you only want firstname, lastname, and zip (checkboxes), where
lastname = smith.
So far, I have been able to figure out which boxes are checked, and
store that in a variable to pass to the select statement, and build the
resulting HTML table with the correct headings. But, I am not sure how
to go about processing only the fields selected with the data returned
from the query.
I have read several examples, and the perldoc, but about the closest
thing I have understood is getting the entire row, and only printing out
the interesting fields. Is this my best bet, or am I just not
understanding something (like bind_columns maybe)? The fact that any
number or combination of boxes can be checked really has me stumped.
I would love to post some code to clarify, but I haven't gotten far
enough to even do that!!
Also, if there's a more appropriate group, feel free to point me in the
right direction.
Thanks for your help.
Tim