Course Details


$courseCode = JRequest::getString('rec', '', 'get');

$courseCode = str_replace('_', '', $courseCode);

$db =& JFactory::getDBO();

$query = "SELECT name, outline, price, description, course_length, audience, format FROM ncadd_courses WHERE course_code = '$courseCode' AND active = 'A' limit 1;";


$row = $db->loadAssoc();

echo '<p><br /><span class="Blue_XLgBOLD">'.$courseCode.': '.$row['name'].'</span><br /></p>';

echo '<p><span class="black_StandardBold">Course Description</span></p><p>'.$row['description'].'<br /></p>';
echo '<p><span class="black_StandardBold">Course length: </span>'.$row['course_length'].'<br /></p>';
echo '<p><span class="black_StandardBold">Cost: </span>'.$row['price'].'</p>';

echo '<br /><br /><br />';


Last modified onThursday, 07 August 2014 09:08

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.