mc_gulasch
Erfahrenes Mitglied
PHP:
/ Unterscheidung der Spalten beim Exportieren
$j = "0";
echo "<table cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"tableouter2\">";
echo "<tr>";
echo "<td class=\"headline2\" width=\"15%\">" . $name1 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name1. "\" /></td>";
echo "<td class=\"headline2\" width=\"15%\">" . $name2 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name2. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name3 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name3. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name4 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name4. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name5 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name5. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name6 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name6. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name7 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name7. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name8 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name8. "\" /></td>";
echo "<td class=\"headline2\" width=\"10%\">" . $name9 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $name9. "\" /></td>";
echo "</tr>";
$j++; //<------------------------- HIIIIEEEER!!
[DB Verbindung und Co]
echo "<tr>";
echo "<td class=\"content2\">" . $dbspalte_1 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_1 ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_2 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_2 ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_3 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_3 ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_4 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_4 ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_5 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_5 ."\" /></td>";
echo "<td class=\"content2\">" . $multiEKxP . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $multiEKxP ."\" /></td>";
echo "<td class=\"content2\">" . $multiVKxP . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $multiVKxP ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_6 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_6 ."\" /></td>";
echo "<td class=\"content2\">" . $dbspalte_7 . "<input type=\"hidden\" name=\"spalte" . $j . "[]\" value=\"". $dbspalte_7 ."\" /></td>";
echo "</tr>";
$j++;
[...]
echo "</table>";