Hallo..
ich hab ein Problem in der nachfolgenden Ausgabeschleife,
Ziel soll es sein das Ergebniss formatiert auszugeben. In ersten Feld soll ein Schalter stehen. Irgendwie schnall ich den Ausgabe logorthmus nicht.
<ul>
<li>
<table border="">
<tr>
<th><?php echo "Suchergebniss"; ?></th>
</tr>
<tr>
<th><?php echo "Übernehmen"; ?></th>
<th><?php echo "Artikelnummer"; ?></th>
<th><?php echo "Artikeltext" ?></th>
<th><?php echo "ListenPreis"; ?></th>
<th><?php echo "Privat"; ?></th>
<th><?php echo "Handel"; ?></th>
<th><?php echo "EK"; ?></th>
<th><?php echo "Referenz"; ?></th>
</tr>
<?php
for ($satz = 0; $satz < $satz_anz; $satz=$satz+1) {
$datensatz = mysql_fetch_row($result,$satz);
?>
<tr>
<td valign="middle" align="center" bgcolor="#5A597B">
<input type="submit" name="Speichern"
onClick='value="<?php echo mysql_fetch_row($result,$satz)?>"'
value= "Speichern" >
<?php
$fields_anz=mysql_num_fields($datensatz)
for ($i = 0; $i < $fields_anz; $i=$i+1) {
$feld=mysql_num_fields($datensatz,$i)
;?>
<td valign="middle" align="center" bgcolor="#5A597B"><?php echo $feld ; ?>
</td>
<?php
} ?>
</td>
</tr>
<?php
} // end for
echo "\n";
?>
</table><br />
</li>
</ul>
MFG
Cord