Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- displaying image
May 1, 2013, 4:31 pm
rate this thread
Click on first link only.
I am using a 2d array and want to display an image based upon the number
key of that array.
<?php echo "<img src='$list['cover']'>"; ?>
This line gives a place holder in firefox and in IE.
It should at least show this image.
Re: displaying image
I think the problem you are having is you are using a 'complex' var in a
simple parse method (double quotes).
Once the engine hit the first closing array index bracket ']', the var
is done being parsed.
Try concatenate with '.'
<?php echo "<img src='" . $list['cover'] . "'>"; ?>
or my favorite, use the complex type parsing with curlies.
<?php echo "<img src=''>"; ?>
- » SoapServer constructor parameters: what is actor uri?
- — Previous thread in » PHP Scripting Forum