I found this source code in a website I just purchased. Just wondering if this script is secure? Can anyone explain this to me?
<?php
if($_GET['map_loc']) {
$code = $_GET['map_loc'];
$result= mysql_query("SELECT ttc.continent_id, ttc.continent_id, c.name FROM territories_to_continents ttc
INNER JOIN continents c
ON ttc.continent_id = c.continent_id
WHERE ttc.code = '$code'
LIMIT 1;
");
$row = mysql_fetch_array($result);
$mapLoc = $row['name'];
}
?>