linking an image on page from an array in php -
why isnt working?
<?php $computers = array(); $computers[101] = array( "name" => "phantom nxzt", "img" => "img/phantom.jpg", "cpu" => "intel i7 4770k quadcore", "gpu" => "gtx 780 3gb gddr5", "ram" => "16gb corsair 1800mhz", "hdd" => "seagate 2tb hard drive", "ssd" => "sandisk 120gb solid state", "price" => 1200 ); ?> <img src="<?php echo $computers["img"];?>">
its coming broken img link, want display image url image src. dont understand why not working please help?
because of [101] :)
<img src="<?php echo $computers[101]['img'];?>">
mmm sorry, ka_lin answered in first
Comments
Post a Comment