PDA

View Full Version : PHP doowhacky


Star Worms
9 Aug 2006, 18:46
Basically I need to create a quick way of adding information to separate tables that are in turn added in a specific place on a page.

What I want to do is add things into boxes which are then added into a certain place in the table (and also a couple of other bits like defining the a name= bit.

How would I go about doing this?

Plutonic
9 Aug 2006, 18:52
Are you just asking how to write to and read from a database?

SupSuper
9 Aug 2006, 18:54
Is that what he meant? Because I can't make much sense of what he wrote.

Star Worms
9 Aug 2006, 19:24
Are you just asking how to write to and read from a database?
Maybe, I don't know since I don't know what doing this would involve.

<a name=""></a>
<table width=848 bgcolor=#FFFFFF style="border: 2px solid #000000" cellpadding=-2>
<tr>
<td>
<table cellpadding=5>
<tr>
<td width=288 align=center valign=center style="border: 2px solid #000000" bgcolor=#d3e6ff><b>&nbsp;</b></td>
<td width=96 colspan=3 align=center valign=center style="border: 2px solid #000000" bgcolor=#d3e6ff><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000" bgcolor=#d3e6ff><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000" bgcolor=#d3e6ff><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000" bgcolor=#d3e6ff><font size=-1>&nbsp;</td>
</tr>
<tr>
<td width=288 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1><b>&nbsp;</b></td>
</tr>
<tr>
<td width=288 align=left valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1><a href=""></a>, <a href=""></a></td>
</tr>
<tr>
<td width=288 align=left valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1><a href=""></a>, <a href=""></a></td>
</tr>
<tr>
<td width=288 align=left valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
</tr>
<tr>
<td width=288 align=left valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
</tr>
<tr>
<td width=288 align=left valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=32 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=128 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=160 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
<td width=192 align=center valign=center style="border: 2px solid #000000"><font size=-1>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
(yes I realise there's a lot of useless junk in there but it was far easier to copy and paste)


That's the layout of the table. I have a lot of these tables to do and doing them in notepad just takes ages so I'm hoping to make a little php form that I can fill in which will then add the table with the information I've added onto another php page with all the other tables.

I also want the <a name=""> bit filled in using another field.

The second row is full of headers so they won't need to change, all the others will though. Also I'll need an option to add extra rows to the form if I need to because the number will vary slightly.

So how would I go about doing this?

M3ntal
9 Aug 2006, 19:32
What data is it that you are wanting to enter into the form, and display in the tables?

SupSuper
9 Aug 2006, 19:39
You could write a PHP script that takes all the values for each table from a text file (or whatever else you want to use) and echos them out in the HTML you had above.

Star Worms
9 Aug 2006, 19:43
What data is it that you are wanting to enter into the form, and display in the tables?
Just normal text:-/