|
|
|
|
|
|
|
![]() |
#1 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
First, you're using perl, not php. ['asdf'] will evaluate as 0, {'asdf'} is how perl accesses hashes.
I would suspect you want something like: Code:
#!/usr/bin/perl my $range = 13; my $random_number = int(rand($range)); $image[1]='example.banner.jpg'; $link[1]='http://some.domain'; $image[n]='example.banner.jpg'; $link[n]='http://some.domain'; $data .= '<a href="'. $link[$random_number] . '">'; $data .= '<img src="'. $image[$random_number] . '" border=0>';
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#2 |
Rock stars ... is there anything they don't know?
|
oh god, is there an emoticon for embarrassed? Thnaks, Ill try that out
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|