Hi,AstroBoy
I looking for someone to fix this modify for me for long time,so i need you help coz someone told me asking you.
I add multiple-images-upload mod to my db,but now i want the images to be placed in colum display format like 4x4...5x5
,but i dont know how to.
below is code i cut from .html
=====================
### Wherever you want your graphics to print out, use the following:
if (-e "$SAVE_DIRECTORY/$rec{$db_key}/tn") {
opendir (GRAPHIC, "$SAVE_DIRECTORY/$rec{$db_key}/tn") or &cgierr("unable to open directory: $SAVE_DIRECTORY/$rec{$db_key}. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|<td valign="middle" align="center"><table border="0" bgcolor="#EEEEEE" cellspacing="0" cellpadding="4">
<tr><td><a href="$SAVE_DIRECTORY_URL/$rec{$db_key}/$file"target=_blank><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}/tn/$file" border="0"></a></td></tr></table></td>
|;
}
}
what should i do with it,thanks
ps. i am not a cgi literated so please help me write down the modify,and i will try it if success.
Regards,
Act.
I am new to cgi, Thank you for your help.
I looking for someone to fix this modify for me for long time,so i need you help coz someone told me asking you.
I add multiple-images-upload mod to my db,but now i want the images to be placed in colum display format like 4x4...5x5
,but i dont know how to.
below is code i cut from .html
=====================
### Wherever you want your graphics to print out, use the following:
if (-e "$SAVE_DIRECTORY/$rec{$db_key}/tn") {
opendir (GRAPHIC, "$SAVE_DIRECTORY/$rec{$db_key}/tn") or &cgierr("unable to open directory: $SAVE_DIRECTORY/$rec{$db_key}. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|<td valign="middle" align="center"><table border="0" bgcolor="#EEEEEE" cellspacing="0" cellpadding="4">
<tr><td><a href="$SAVE_DIRECTORY_URL/$rec{$db_key}/$file"target=_blank><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}/tn/$file" border="0"></a></td></tr></table></td>
|;
}
}
what should i do with it,thanks
ps. i am not a cgi literated so please help me write down the modify,and i will try it if success.
Regards,
Act.
I am new to cgi, Thank you for your help.