First of all, thank you very much for the reply. I appreciate it alot. The code you provided gave me a base and a direction to work towards. However, I am still unsure of some things and I'll try to explain to you better what I am hoping to do now.
First, I have a database (jolt) with two tables (matches & segments). Now, the entries can be added through a form to the tables by anybody. That is the easy part because it is just inserting information into the database, so I already have that taken care of. Now, the administrator has a webpage where he can view all of the submitted entries from the two tables (matches and segments), which again is easy because all it calls for is withdrawing the information for viewing.
Now, the part I am stuck on and that you began helping me with last post was how, for the adminstrator, to select which segments and matches he wanted to show on a single webpage and in which order he wanted all of them. This is best done, I beleive, by your method of the check boxes and a simple form POST process as you provided.
So, the first thing we need is for a process that will create a checkbox for each entry in the tables. For example:
<form method="POST" action="">
Select which matches to post
<p><input type="checkbox" name="M[]" value="1"/>
Match 1 </p>
<p><input type="checkbox" name="M[]" value="2"/>
Match 2</p>
<p></p>
<p>Select which segments to post</p>
<p><input type="checkbox" name="S[]1" value="1"/>
Segment 1</p>
<p><input type="checkbox" name="S[]" value="2"/>
Segment 2</p>
<p></p>
<p><input type="submit" value="Submit" name="posting"></p>
</form>
However, the checkboxes need to be added for each record in each table with the WHILE function or another function, I believe. So, for the top matches section of the form, there would be a WHILE process combined with a mySQL query to gather all the entries from the table MATCHES and create checkboxes for them. Then, the same would be done on the bottom half for the segments portion, only it would take all the entries from the table SEGMENTS.
Alright, so now we would have the form completed. But, how about actually pulling querying the specified tables for the specified entries? You posted a code last post that seems like it would work with some modification.
Try to envision this scenario: The administrator selects the first check box in the 'matches' section of the form and the first check box in the 'segments' portion of the form. So, he wants to withdraw all of the fields from the table MATCHES where ID=1. He would like the same withdrawn from the table SEGMENTS where ID=1. Sort of get it?
Then all the variables passed for those two entries would be echo'd. I think I've asked enough, so maybe if we get this figured out I'll ask then how to put it in order.
But for now:
1. How to automate a process so to create checkboxes for each each entry in the two tables (as displayed above).
Have the query pull all of the variables out from the two tables where the ID equals what the user selected through the check boxes.
I (maybe) give you about $1,000,000,000 for helping me. (o:[/b]
I know I ask alot, but it would really mean alot to me if anyone could further help me with this. Thank you and enjoy the rest of your weekend.