I'm relatively new to CodeIgniter and PHP. I'm trying to display table output which includes a reference to a controller function (main/select). Would anyone be able to tell me why this href doesn't work and how I could fix this?
if($data->num_rows() > 0)
{
foreach($data->result() as $row)
{
$output .= '
<tr>
<td><a href="<?php echo base_url(); ?>main/select/<?php $row->PatientID; ?>"> Select </a></td>
<td>'.$row->MRN.'</td>
<td>'.$row->LastName.'</td>
<td>'.$row->FirstName.'</td>
<td>'.$row->DateOfBirth.'</td>
<td>'.$row->Gender.'</td>
</tr>
';
}