Please i really need Help with how to get the picture when y

Please i really need Help with how to get the picture when you click on the name of the country. it is php

Thanks

Home Insert Design Layout References Calibri Light H... 16 A- Ar Paste Page 1 of 2 204 Words US csci2006 lab5 Mailings Review View Question 1 Finish the following PHP code problem. Given the provided array of countries, output the nformation in the array using one or more loops within a two-column HTML table. The first column will display the country name and the second column the capital city name. Make the Country name a nk to countr pass the country code (the first element in the arr as ay) a query string with a name of code (e.g., countr ono Then the count hp?code-AR. script will display an image ofthe country based on the received code. All the images should be ored in Simages array stored in a directory called images and their names are s $count array AR Argentina Buenos Aires AT Austria Vienna array BE a Beleiun Brussels array Ott ype sinages array(\"AR\" AT\" at.jpe PE\", \"CA pg\" be Question 2 Write the complete PHP page ayers.php) that will generate the outcome shown below. The data comes from a text file named players.tx whose content is shown below. Notice the htm able you w eed to generate. Don\'t worry about any styling. N otice that you will have to calculate total points for each playe oals assists a Com 274 Final Microsoft Internet plo Tools Help Louis, 38 St 6,Tampa Bay Top scorers in the NHL Kovalchuk, 41,46,Atlanta Sakic, 33, orado 4, Co. Player Name Naslund, 35,49 Vancouver Goals Assist otal Points M. ,Hossa, 36,46,0ttawa MS: Lous Ti 56 94 Tampa Bay 38 ovalchuk. 46 Colorado 3 MNaskurd ancorver 35 49 36 46 Focus Search Share Style 40%

Solution

<?php

$countries =array(
array(\"AR\",\"Argentina\",\"Buernos Aires\"),
array(\"AT\",\"Australia\",\"Vienna\"),
array(\"BE\",\"Belgium\",\"Brussels\"),
array(\"CA\",\"Canada\",\"Ottawa\")
);

?>
<html>
<head>
   <title>Country List</title>
</head>
<body>
   <table>
       <tr>
       <th>Countries</th>
       <th>Cities</th>
       </tr>
       <?php for($i=0;$i<count($countries); $i++){ ?>
       <tr>
           <td><?php echo $countries[$i][1] ?></td>
       <td><a href=\"country.php?cnt=<?php echo $countries[$i][0] ?>\"><?php echo $countries[$i][2] ?></a></td>
       </tr>
       <?php } ?>

   </table>
</body>

</html>

Country.php

<?php
$images = array(\"AR\"=>\"ar.jpg\",\"AT\"=>\"at.jpg\",\"BE\"=>\"be.jpg\",\"CA\"=>\"ca.jpg\");
$countries = $_REQUEST[\'cnt\'];

?>
<!DOCTYPE html>
<html>
<head>
    <title>Country</title>
</head>
<body>
<img src=\"images/$_REQUEST[\'cnt\']\">
</body>
</html>

Please i really need Help with how to get the picture when you click on the name of the country. it is php Thanks Home Insert Design Layout References Calibri L
Please i really need Help with how to get the picture when you click on the name of the country. it is php Thanks Home Insert Design Layout References Calibri L

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site