[eluser]Wondering Coder[/eluser]
Code:
if($job_list->num_rows() > 0){
foreach($job_list->result() as $item){
echo "<tr style='border-bottom: gray;'><td width ='1px'></td><td><p><a href=''>".$item->job_title."</a></p></td></tr>";
}
}else{
echo "Sorry, No Available Jobs";
}
?>
I've searched on the net on how to use an onclick event <a href="#"> but don't know how to apply it in my code(coz of foreach).
What i want to do is when I clicked my link it will popup a new window where it will display all necessary information of the job title.
For more information my primary key or id is job_id.