Posts

What is Helper And Liabrary In C.I

  What is Helper And Liabrary=> 1.Helper=>Helper mai hum wahi functaion cll krate hai jise hum kahi v data nikal sakte hai 2.Liabrary=>liabrary mai hum jo function lete hai uske lie class ki jrurt hoti hai data get krane k lie class dena pdta hai

LOGO AND SMS SEND TO EMAIL

  Controler SMS with logo send  $to = $this->input->post('email'); $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: cloudhash <info@cloudhash.live>' . "\r\n"; $subject = 'Thank you for joining the cloudhash..'; $message = "<html><head></head><body>"; $message .= '<img src="'.base_url().'/assets/images/311.png"></body></html>'; $message .= ' Respected <b style="color:orange">'.$this->input->post('f_name').'</b><br> Your OTP is '.$otp.' Thank you for joining the cloudhash..<br> Looking forward to a continuous and a fruitful business partnership with you. <br> Regards, <br> cloudhash'; mail($to,$subject,$message,$headers);

Wordpress notes

  WordPress    1.appearance =>menus=>(category). 2.appearance=>theme editor => css.

Laravel vs CodeIgniter: Which is Better?

Image
  Laravel vs CodeIgniter: Which is Better? What is Laravel? Laravel is an open-source widely used PHP framework. The platform was intended for the development of web application by using MVC architectural pattern. Laravel is released under the MIT license. Therefore its source code is hosted on GitHub. It is a reliable PHP framework as it follows expressive and accurate language rules. What is CodeIgniter? CodeIgniter is a powerful PHP framework. It is built for developers who like a simple and elegant toolkit to create full-featured web applications. CodeIgniter is one of the best options for creating dynamic websites using PHP. It provides complete freedom for the users as they don't need to depend on the MVC development pattern. Moreover, it allows third-party plugins which can be useful to implement complicated functionalities. It also offers awesome security and encryption procedures. Why use Laravel? Laravel offers version control system that helps with simplified management ...

image fetch in codginater and join nd order_by

View ==>fetch <td><img width="90" height="50" src="../images/image_upload/'.$value['image_path'].'"></td> MODELS==> JOIN ND ORDER BY 1..$this->db->join('country','country.id=form.country','Left');//2tables data fetch in 1 page 2..$this->db->order_by("id ", "desc");

Add Contury with Code

 VIEW==>  <p><label>Country</label>  <select name="country">                                              <?php           foreach ($formdata as $value) {    echo '<option>'.$value['id'].$value['country'].'</option>'; } ?> </select> </p>       

Model all Querys

INSERT==> function form($data) { $insert = $this->db->insert('form', $data); }   UPDATE==> function update($id, $data)     { $this->db->where('id', $id); $this->db->update('form', $data);                 $error = $this->db->error();                 if(empty($error['message'])) { return true; }                 else { return false; } } FETCH==> public function fetch_data(){ $this->db->select('*'); $this->db->from('form'); $query = $this->db->get(); return $query->result_array(); } DELETE==> public function del ($id  { $this->db->where('id',$id); $insert = $this->db->delete('form'); return true; }