I am having a display issue problem in my code in. The only way to tell you is to show you.
Now if you look at the second listing down, it should have only the house image next to it... not the no photo available image.
Here is an exerpt of the code for that part of the page and what I have tried
I have also tried
Can someone figure out why it's displaying the No Photo Available image next to the house image?
Thanks in advance.
Now if you look at the second listing down, it should have only the house image next to it... not the no photo available image.
Here is an exerpt of the code for that part of the page and what I have tried
Code:
opendir DIR, "/home/prud/public_html/Prudential/thumbs"; # . is the current directory
while ( $filename = readdir(DIR) ) {
if ($filename ne "$emps[0].jpg") {
@list = ( $emps[0] );
%temp;
@list = grep { ++$temp{$_} < 2 } @list;
foreach (@list) {
if ($filename ne "$emps[0].jpg") {
print <<OH;
<td valign=\"top\" align=\"center\" width=\"220\" class=\"realtortexttwo\"><img src="[URL unfurl="true"]http://www.prudentialjackwhitevista.com/Prudential/00000000tn.jpg"[/URL] width="124" height="93" border="1" alt="$emps[0].jpg" /><BR>
No Photo Available</td>
OH
}}
}
}
closedir DIR;
I have also tried
Code:
opendir DIR, "/home/prud/public_html/Prudential/thumbs"; # . is the current directory
while ( $filename = readdir(DIR) ) {
if ($filename eq "$emps[0].jpg") {
print <<OH;
<td valign=\"top\" align=\"center\" width=\"220\" class=\"realtortexttwo\"><br><br><img src="[URL unfurl="true"]http://www.prudentialjackwhitevista.com/Prudential/thumbs/$emps[/URL][0].jpg" width="100" height="75" border="1" alt="$emps[0].jpg" /><br></td>
OH
}else{
@list = ( $emps[0] );
%temp;
@list = grep { ++$temp{$_} < 2 } @list;
foreach (@list) {
if ($filename ne "$emps[0].jpg") {
print <<OH;
<td valign=\"top\" align=\"center\" width=\"220\" class=\"realtortexttwo\"><img src="[URL unfurl="true"]http://www.prudentialjackwhitevista.com/Prudential/00000000tn.jpg"[/URL] width="124" height="93" border="1" alt="$emps[0].jpg" /><BR>
No Photo Available</td>
OH
}}
}
}
closedir DIR;
Can someone figure out why it's displaying the No Photo Available image next to the house image?
Thanks in advance.