so i find myself having this problem again... in listviewdefs.php
PHP Code:
'customCode' => getRelatedJob('{$ID}'),
PHP Code:
function getRelatedJob($id){
global $db;
global $sugar_config;
$sql = 'SELECT o.id, o.name FROM ab12_companpportunities_c po, opportunities o WHERE o.id = po.ab12_compaed91unities_idb AND po.ab12_compa9de1nvoices_ida = "'.$id.'"';
$query = $db->query($sql);
$row = $db->fetchByAssoc($query);
$return = '<a href="index.php?module=Opportunities&action=DetailView&record='.$row['id'].'">'.$row['name'].'</a>';
return $return;
};
its like whenever i run the query it does not see the ID... now i can echo out the ID and it looks fine... and is_string returns true... but if i try to manipulate ID in any way like explode() it doesn't work.
Bookmarks