Hi,
I have a CC that will display data from a table named "record". In this table I have some columns for example it stores the joomla username. I try to access the email adress in the joomla user table by using the username, but I dont get it to work. I have tried different soulutions.
This is code in the body of CC
"anv" is the username column in my database-table. The $v_id variable stores the current id in the loop.
Anyone have any suggestions?
I have a CC that will display data from a table named "record". In this table I have some columns for example it stores the joomla username. I try to access the email adress in the joomla user table by using the username, but I dont get it to work. I have tried different soulutions.
This is code in the body of CC
<?php
$v_id = '{id}';
$database->setQuery( "SELECT `anv` FROM `record` WHERE `id` = $v_id" );
$categories = $database->loadObjectList();
foreach($categories as $category) {
$category=($category->anv;
echo $category;
}
?>
"anv" is the username column in my database-table. The $v_id variable stores the current id in the loop.
Anyone have any suggestions?