why doesn't this work?
Posted: Sun Feb 09, 2003 3:56 pm
both images show as "not available"...
what's wrong with this? im guessing the array of file names but i dunno how to fix...
what's wrong with this? im guessing the array of file names but i dunno how to fix...
Code: Select all
<html>
<body>
<?php
$headersї0] = "header1.jpg";
$headersї1] = "header2.jpg";
$headersї2] = "header3.jpg";
$headersї3] = "header4.jpg";
$header = mt_rand(0, 4);
$header_loc = $headersї$header];
?>
<img src="<?php $headersї'$header']; ?>">
<img src="<?php $header_loc; ?>">
</body>
</html>