firekiller15
asked on
How to set different filename in one row in database
PHP
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
but
in the database i only have one field called filename and this filename is the variable name for that 3 record
as this
$GetFileNameReturn[$j] = $row['filename'];
foreach($this->GetFileName Return 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
pls help
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
but
in the database i only have one field called filename and this filename is the variable name for that 3 record
as this
$GetFileNameReturn[$j] = $row['filename'];
foreach($this->GetFileName
{
$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
pls help
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.