PHP example!
Code: Select all
if ($course['holes_18'] == '1') {
echo 'Some fields here';}
elseif ($course['holes_36'] == '1') {
echo 'Some other fields here!'}
Code: Select all
if ($course['holes_18'] == '1') {
echo 'Some fields here';}
elseif ($course['holes_36'] == '1') {
echo 'Some other fields here!'}
Code: Select all
$query = 'SELECT * FROM some_table WHERE id = ?';
$row = $db->GetRow( $query, array($recordid) );
if( $row )
{
foreach( $row as $key => $value )
{
$smarty->assign($key,$value);
}
}
Code: Select all
$query =
"SELECT * FROM ".cms_db_prefix ().
"module_clubmanager_clubs WHERE uid = ?";
$dbresult = $db->Execute ($query, array($params['uid']));
$course = $dbresult->FetchRow ();
$this->smarty->assign ('title', $this->$course['club_name']));
Code: Select all
global $gCms;
$smarty =& $gCms->GetSmarty();
Code: Select all
$smarty->assign ('title', $course['club_name']);