Hi,
when i execute the following query i got only the field_value but i need the field_name. :(
How i can get the field_name?
$results = $wpdb->get_results($wpdb->prepare(" SELECT l.*, field_number, value
FROM wp_rg_lead l
INNER JOIN wp_rg_lead_detail ld ON l.id = ld.lead_id
WHERE l.id=%d
ORDER BY l.id, field_number", $entry["id"]));
thx,
Soonu