function list_talent_experience($talent_id) { $list = ""; $experience_sql = "SELECT\n\t\t*\n\t\tFROM\n\t\ttams_talent_experience\n\t\tWHERE talent_id = {$talent_id}"; $talent_experience = DB::query($experience_sql); if ($talent_experience) { foreach ($talent_experience as $experience) { $list .= ''; $list .= get_experience_item_name($experience['experience_item_id']) . ", "; } } return $list; }
<p class="one"> <?php foreach ($talent_experiences as $experience) { ?> <span class="label label-info" style="display:inline-block;padding: 5px 12px 0px 10px;"> <a class="two" href="process_talent_deletes.php?action=delete_experience_item&id=<?php echo $experience['talent_experience_item_id']; ?> &talent_id=<?php echo $talent_id; ?> " onclick="return confirm('Are you sure you wish to delete this Record?');" > X </a> <?php echo get_experience_item_name($experience['experience_item_id']); ?> </span> <?php } // for each $talent_experiences ?> </p> <?php } // End if $talent_experiences ?>