9 years ago
1
Topic

How can i get the field name value, in old version you could use this: CCK_GET_Value($forhandler['id'], 'email') but not enymore please help.

Thanks love this framework!.

$db =& JFactory::getDBO();

$sql = "SELECT id,title,catid,introtext FROM #__content WHERE catid IN (41,51,52,53,57,58) and state = 1 order by title asc";

$db->setQuery($sql);

$listForhandlere = $db->loadAssocList();

foreach($listForhandlere as $forhandler){

echo $forhandler['title'];

echo $forhandler['introtext']; // i just want to show the email field in the introtext.

}

Get a Book for SEBLOD
572 Posts
_jrmo
9 years ago
0
Level 1

Hi Pretorian,

Perhaps it's better if you explain a little bit more about why your field is stored in the introtext column to begin with... Your fields should be stored in their own columns. Please give a broader overview of your situation and what you are trying to achieve.

_jrmo

Get a VIP membership