Mailinglisten-Archive |
Hi Liste
Ich brauche dringend Hilfe:
Script ist selbsterklaerend!
Geht das..., was ich wuensche ???
<?php
$query = "SELECT * FROM $table where Id=$id";
$result = mysql_query($query);
if ($result) {
$i = 0;
while ($i < mysql_num_fields ($result)) {
$meta = mysql_fetch_field ($result);
if($meta->blob == 1) {
echo "<tr><td class=small><b>SPALTE $i [$meta->name]:</b> ";
echo "ist ein <b>BLOB FELDTYP</b> und steht deshalb in ";
echo "einer textarea</td>";
echo "<td class=big>";
echo "<textarea rows=\"6\" wrap=soft cols=\"43\" name=\"\">
Hier soll der Feldinhalt von $meta->name hinein
- NUR WIE ???? -
Und das ohne die Ausgabe zu verändern....</textarea></td></tr>"; }
else { echo "<tr><td class=small><b>$meta->name</b></td>";
echo "<td class=big>";
echo "<input type=\"text\" size=\"50\" name=\"\" value=\"
Hier soll der Feldinhalt von $meta->name hinein\">
</input></td></tr>"; }
$i++;
}
}
mysql_free_result ($result);
?>
Dank allen Helfern!
<? still sigless [x2] //Christoph Schoenian ?>
php::bar PHP Wiki - Listenarchive