<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User_Model extends CI_Model { function __construct() { parent::__construct(); } function entry_insert($data) { $this->db->insert('applicants',$data); } function get_entery($title) { return $this->db->where('postiontitle', $title)->get('applicants')->result(); } }
<html> <head> <link rel="stylesheet" type="text/css" href="./assets/main.css"/> </head> <body> <div id="main_container"> </div> </body> </html>
<?php class Adminc extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->model('User_Model' , "user"); } public function index( ) { $this->load->view('admin'); $title="android developer"; $users = $this->user->get_entery($title); //var_dump($users); foreach ($users as $user) { echo"<table>"; echo"<tr>"; echo"<td>".$user->fullname."</td>"; echo"<td>".$user->age."</td>"; echo"<td>".$user->phonenumber."</td>"; echo"<td>".$user->expectedsalary."</td>"; echo"<td>".$user->email."</td>"; echo"<td>".$user->experence."</td>"; echo"<td>".$user->testquestion."</td>"; echo"<td>".$user->answer."</td>"; echo"</tr>"; echo"</table>"; } } } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)