Προϊστορία

<?php
$jinput = JFactory::getApplication()->input;
$team = $jinput->get(‘team’);

// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query=’SELECT TeamName FROM teams WHERE teamcode=’.$team;
$db->setQuery($query);
$results = $db->loadObjectList();

echo “<h1>Αντίπαλος: “.$results[0]->TeamName.”</h1>”;
?>