Posts

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; }

Importent Notes

 1. URI Segment Using CodeIgniter URL class’s function, we can retrieve information from URI string. In this tutorial we are going to explain how we can use the URI class in CodeIgniter to retrieve information from URI segment. uri segment url se data get krane k lie use hota hai indexing URL ke function ke indexing ke according specific data get karne ke lie use hota hai .. 2.&nbsp =in use space 3. flash data . kuch time k lie data store karta hai session mai 4.database se same data se jo register hai usse login k lie hum count     krenge for example  if(count($valid)>0)  isme condition hai if k sath hai ki agr count $vaild mai jo data hai vo 0 se bada hai. 5. explode function= sting ko aaray mai convert ke lie use hota hai 6. implode function =array ko string mai convert karta hai 6. is_numeric function = Finds whether a variable is a number or a numeric string(ye varuable mai dekta hai ki value number ya numaric hai ya nahi if(is_numeric($order_i...