How to set different filename in one row in database
Posted on 2008-06-10
i have a table, i call it GETFILENAME
in GETFILENAME i have 2 field one call "description" and another one call "filename"
in filename i have 3 record called "test1","test2","test3"
this "test1","test2","test3" is a file-name.
if writing in PHP i can write
$file1 = test1;
$file2 = test2;
$file3 = test3;
and each file is differentiate by different variable name
in the database i only have one field called filename and this filename is the variable name for that 3 record
$GetFileNameReturn[$j] = $row['filename'];
foreach($this->GetFileNameReturn as $FileName)
$filename = test1;
$filename = test2;
$filename = test3;
above code shows 3 different file are assigned to the same variable filename
suppose i only need 3 times to create 3 different file but now i need 9 time to create 3 different file
How to do this