[eluser]Bhavani Shekhawat[/eluser]
view
Code:
<h1> Your Artifacts </h1>
<link rel="stylesheet" type="text/css" href="css/button.css" title="Default">
<?php foreach ($rows as $r): ?>
<?php echo anchor('site/click_artifact', $r->ArtifactID); ?> |
<?php echo $r->Description; ?> |
<?php echo $r->EnteredDate; ?> |
<p class = "result"> <?php echo anchor('site/delete_artifact'.$r->ArtifactID, "Delete Artifact"); ?> </p>
<p class = "result"> <?php echo anchor('site/modify_artifact'.$r->ArtifactID, "Modify Artifact"); ?> </p>
<?php echo "</br>"; ?>
<?php endforeach; ?>
controller
Code:
function click_artifact($link){
$this->members_area();
$getLink = $link;
$this->load->model('artifact_model');
$data['rows'] = $this->artifact_model->display_artifact($getLink);
$this->load->view('view_artifact', $data);
}
I basically need the artifactID back from the view. what I want is that when a user clicks on the artifact id link it should get him the details related to that artifact id stored in the db.