Hi, Guys you can fetch data frome database "sql" very simple steps just follow you. 'Controller' public function about_us(){ $data["result"]=$this->courses_model->fetch_data(); //print_r($data['result']->field); die(); //$this->load->model('Test'); $this->load->view('about-us',$data); }*/////////////course_modelpublic...
30 August, 2018
Select Data table by select query ...Codeiginter
Welcom....
* Welcom.... 'Controller'
public function about_us(){
$data["result"]=$this->courses_model->fetch_data();
//print_r($data['result']->field); die();
//$this->load->model('Test');
$this->load->view('about-us',$data);
}
*
/////////////course_model
public function fetch_data()
{
return $this->db->select('field')->from('about')->get()->row();
...
29 August, 2018
28 August, 2018
How to Insert Data In Data Base According by Codeigniter
Programing Coderfunda
August 28, 2018
codeigniter
No comments
Hi Guys you can use very simple1. if you instal (IC).Then you 1st Create A tabel in data baseCREATE DATABASE oktech_courses;CREATE TABLE contact(id int(10) NOT NULL AUTO_INCREMENT,Name varchar(255) NOT NULL,Phone int(15) NOT NULL,City varchar(255) NOT NULL, Email varchar(255) NOT NULL,Message text(255) NOT NULL,Date timestamp(255) NOT NULL,PRIMARY...
How to Insert Data In Data Base According by Codeigniter
Hi Guys you can use very simple
1. if you instal (IC)
.
Then you 1st Create A tabel in data base
CREATE DATABASE oktech_courses;
CREATE TABLE contact(
id int(10) NOT NULL AUTO_INCREMENT,
Name varchar(255) NOT NULL,
Phone int(15) NOT NULL,
City varchar(255) NOT NULL,
Email varchar(255) NOT NULL,
Message text(255) NOT NULL,
Date timestamp(255) NOT...