starbuck69400
New Member
Hello every body,
I try to use a php validation code on a display element to get a value from a field in function of the value i've select in my databasejoin element (cnx_cnx___Adliv):
Cou'ld you tell me what i'am wrong?
Thanks for help.
I try to use a php validation code on a display element to get a value from a field in function of the value i've select in my databasejoin element (cnx_cnx___Adliv):
Code:
$adliv== '{cnx_cnx___Adliv}';
$db =&JFactory::getDBO();
$db->setQuery("SELECT `Nom` FROM `cnx_client` where $adliv = '1029092'");
$fieldA = $db->loadResult();
return $fieldA;
Cou'ld you tell me what i'am wrong?
Thanks for help.