i already prepare this things pls see the code below:
function getSearchResults ($function_name, $description = TRUE)
{
$this->db->like('songName', $function_name);
$this->db->orderby('songName');
$query = $this->db->get('tbl_rbt');
if ($query->num_rows() > 0)
{
$output = '<table width="800" border="1" class="output_table">';
foreach ($query->result() as $function_info)
{
if ($description)
{
$output .= '<tr ><td>'.$function_info->songName.'</td>';
$output .= '<td>'.$function_info->albumName.'</td>';
$output .= '<td>'.$function_info->artistName.'</td></tr>';
}
else
{
$output .= '<tr>'.$function_info->songName.'</tr>';
}
}
$output .= '</table>';
return $output;
}
else
{
return '<p>Result not found.</p>';
}
}
thanks to all
riad