Skip to main content
Improving the style
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Use the below code for fetching values. It will give you field_naam_value field data.

$naam = db_select('profile', 'pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam$all_names = $naam->fields('fd', array('field_naam_value')['field_naam_value'])
                ->condition('pf.uid', 4, '=')
                ->execute()
                ->fetchAll(); 
 foreach ($all_names as $record)
  {
       die;
 }  

Use the below code for fetching values. It will give you field_naam_value field data.

$naam = db_select('profile', 'pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam->fields('fd', array('field_naam_value'))
                ->condition('pf.uid', 4, '=')
                ->execute()
                ->fetchAll(); 
 foreach ($all_names as $record)
  {
       die;
 }  

Use the below code for fetching values. It will give you field_naam_value field data.

$naam = db_select('profile', 'pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names = $naam->fields('fd', ['field_naam_value'])
  ->condition('pf.uid', 4, '=')
  ->execute()
  ->fetchAll();
foreach ($all_names as $record) {
  die;
}

Use Below Codethe below code for fetching values.it It will give you field_naam_value field data.

$naam=db_select$naam = db_select('profile', 'pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam->fields('fd', array('field_naam_value'))
                   ->condition('pf.uid', 4, '=')
                   ->execute()
                   ->fetchAll(); 
 foreach ($all_names as $record)
 {
       die;
 }  

Use Below Code for fetching values.it will give you field_naam_value field data.

$naam=db_select('profile','pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam->fields('fd',array('field_naam_value'))
                   ->condition('pf.uid',4,'=')
                   ->execute()
                   ->fetchAll(); 
 foreach ($all_names as $record)
 {
       die;
 }  

Use the below code for fetching values. It will give you field_naam_value field data.

$naam = db_select('profile', 'pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam->fields('fd', array('field_naam_value'))
                ->condition('pf.uid', 4, '=')
                ->execute()
                ->fetchAll(); 
 foreach ($all_names as $record)
 {
       die;
 }  
added 17 characters in body
Source Link
Krishna Mohan
  • 6.3k
  • 9
  • 30
  • 55

Use Below Code for fetching values.it will give you field_naam_value field data.

 Use Below Code for fetching values.it will give you 'field_naam_value' field data.             



    $naam=db_select('profile','pf');
    $naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
    $all_names=$naam->fields('fd',array('field_naam_value'))
                   ->condition('pf.uid',4,'=')
                   ->execute()
                   ->fetchAll(); 
    foreach ($all_names as $record) 
 {
        die;
    }  
 Use Below Code for fetching values.it will give you 'field_naam_value' field data.             



    $naam=db_select('profile','pf');
    $naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
    $all_names=$naam->fields('fd',array('field_naam_value'))
               ->condition('pf.uid',4,'=')
               ->execute()
               ->fetchAll(); 
    foreach ($all_names as $record) {
        die;
    }  

Use Below Code for fetching values.it will give you field_naam_value field data.

$naam=db_select('profile','pf');
$naam->join('field_data_field_naam', 'fd', 'pf.pid = fd.entity_id');
$all_names=$naam->fields('fd',array('field_naam_value'))
                   ->condition('pf.uid',4,'=')
                   ->execute()
                   ->fetchAll(); 
 foreach ($all_names as $record) 
 {
       die;
 }  
Source Link
TBI Infotech
  • 1.6k
  • 1
  • 10
  • 15
Loading