hi all,
the array $filename is stored as "array" to the table - how can i extend the script to get the value in the table? will mysql_result print the array value?
if (($picture != "none") and ($err == false)) {
for ($i =0; $i < count($picture); $i++) {
$return = mysql_query("INSERT INTO files (ID,filename,file) VALUES('$currID','$filename','$picture_name[$i]')", $link);
if ($return == false) {
Error("Die Datenbank konnte nicht aktualisiert werden.<br>".mysql_error());
}
if (!copy($picture[$i], "images/$picture_name[$i]")) {
Error("Datei konnte nicht kopiert werden.<br>".mysql_error());
}
for ($i=0; $i<$Files; $i++){
?>
<p>
<input type="file" name="picture[]" size="20">
<font face="Arial, Helvetica, sans-serif" size="2">Name</font>
<input type="text" name="filename[]">
</p>
<?
}
?>
regards,
chris