Need advice on extracting database entries

This is a discussion on Need advice on extracting database entries within the MySQL Database forums, part of the Database Forums category; I'm not sure how I need to proceed on this and can use a bit of advice. I have ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2006
JackM
 
Posts: n/a
Default Need advice on extracting database entries

I'm not sure how I need to proceed on this and can use a bit of advice.

I have a non-profit's web site that wishes to allow their members to
fill out information regarding summer camp information (name, contact
info, mailing info, physician's name, etc) online and submit it. I can
handle taking the info with PHP and putting it into a mySQL database easily.

But what has me stuck is that they want the ability to print out hard
copies of selected submissions (their choice) if they need to.

Would I have to display all the database entries in a form on a new page
with a select box next to each entry and have them pick that way, then
loop through and print out the selected ones or is there a better, more
direct (read: easier) way to accomplish this?

Does this sound like something for which there may be a pre-written PHP
script that can be altered?
Reply With Quote
  #2 (permalink)  
Old 04-03-2006
milahu
 
Posts: n/a
Default Re: Need advice on extracting database entries

You list the entries and add sth. like
<input type="select" name="subm[]" value="$ID" />
after each one where $ID is the submission's id.

Now you can simply evaluate the form data:
foreach ($_POST['subm'] as $id) {
// print submission no. $id here
}

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0