As the entire code is bigger than this forum allows (max 22000 chars) I only submit the 1st group code, the other 3 uses same princip as group 1:
fixtures.php:
<HTML>
<body bgcolor="#ABABAB" text="black" link="blue" vlink="purple" alink="red">
<?
include("info.php");
?>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="48%">
<p><B><I><?echo $text1?></I></B><br></p>
<table border="1" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $groupa?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Species</b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Week 1</b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Week 2</b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Week 3</b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Week 4</b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b>Week 5</b></p>
</td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_1?></b>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_1?></b>
</td>
<td width="79">
<p align="center"><?echo $team1_3?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_6?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_4;?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_2;?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_5;?></p>
</td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_2?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_2?></b></p>
</td>
<td width="79">
<p align="center"><?echo $team1_6?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_4?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_5?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_1?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_3?></p>
</td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_3?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_3?></b></p>
</td>
<td width="79">
<p align="center"><?echo $team1_1?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_5?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_6?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_4?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_2?></p>
</td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_4?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_4?></b></p>
</td>
<td width="79">
<p align="center"><?echo $team1_5?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_2?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_1?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_3?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_6?></p>
</td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_5?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_5?></b></p>
</td>
<td width="79">
<p align="center"><?echo $team1_4?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_3?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_2?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_6?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_1?></td>
</tr>
<tr>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $team1_6?></b></p>
</td>
<td width="79" bgcolor="#999999">
<p align="center"><b><?echo $spec1_6?></b></p>
</td>
<td width="79">
<p align="center"><?echo $team1_2?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_1?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_3?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_5?></p>
</td>
<td width="79">
<p align="center"><?echo $team1_4?></p>
</td>
</tr>
</table>
</td>
<td width="10">
<p> </p>
</td>
<td width="48%"><p><B><I><?echo $text2?></I></B><br></p>
<table border="1" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
...
...
[I][B]Here's the next group, after this, the 3rd group, then 4th group, ending with:[/B][/I]
...
...
<td width="79">
<p align="center"><?echo $team4_4?></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
It gives the following look, exept for whats withing the red square, which is what I want automized:

Where I want all the cells to be empty to start with, and as I post the teams and characters, it update it, and ask for next clan.
Optionally it would be great, to have following to start with, before entering the teams:
[ ] 2 groups
[ ] 3 groups
[o] 4 groups
[ ] 5 groups
[ ] 6 groups
and:
Teams per group:
[ ] 4
[ ] 5
[o] 6
[ ] 7
[ ] 8
And have the tables auto correct to the specified amount of columns and rows.
When 6 teams in same group, it's 5 weeks, and with 1 column for the Team, and 1 for their characters, it's therefore 7 columns.
Same for rows, it's 6 teams, + the info header of the table, as shown on the script example.
Must be possible, but how?
Regarding the table autosize, I know it can be made with:
$cell=1; $cell<=$maxcells; $cell++;
and the coding for ther table comes.
I should be able to find out about that myself, but help is always appriciated.
What I can't find out, is how to do as the image: have a button to update, and when updating, stay there, show the update and ask for next one.
Should be something, so it's writing to the info.php:
$file_content="info to add to file, but need to be able to make the file as info.php in the code above";
$file_name="info.php";
$fp = fopen ($file_name, "w");
fwrite ($fp,$file_content);
fclose ($fp);
chmod($file_name,0777);
Maybe the solution is to have something like: What ID for team 1_1?
then in a formfield type team1_1, or by dropdown menu?
Then I could use the write command, with a html code to organize the info.php, with the coding as above for info.php?
Or a template, where there's links on all places where it can add info, then come with a prompt, and ask for info?
lol, making it more and more uncleas, as I type, I know.
Hope I made it a bit clearer, and could get some help, as I am currently blank for ideas, how to do it :bemused:
But the initial request for help:
How to update the table through a interface, without needs of editing the info.php?
Thanks in advance 🙂