Skip to main content

Posts

Showing posts from May, 2019

cloudconvert to convert file using curl php

<!DOCTYPE html> <html> <head>   <title>Project APi File Convert</title>   <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" >   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <form action="curl.php" method="POST" enctype="multipart/form-data">    <div class="container">    </br></br></br></br></br></br>      <div class="form-group">       <label>Select Input  Format</label>       <select class="form-control" name="inputformat">         <option>Select Format</option>         <option value="key">key</option>     ...

RESTful web services in codeigniter

Controller:-Api.php <?php require(APPPATH.'/libraries/REST_Controller.php'); class Api extends REST_Controller{         public function __construct()     {         parent::__construct();         $this->load->model('data_model');     }     function sdata_get()      {                 $result =$this->data_model->all_data();                 if($result)         {                         $this->response($result, 200);         }         else         {             $this->response("No record found", 404);         }               return js...

Live Data Search in Codeigniter using Ajax JQuery

Ajaxsearch.php - Controllers <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Ajaxsearch extends CI_Controller { function index() { $this->load->view('ajaxsearch'); } function fetch() { $output = ''; $query = ''; $this->load->model('ajaxsearch_model'); if($this->input->post('query')) { $query = $this->input->post('query'); } $data = $this->ajaxsearch_model->fetch_data($query); $output .= ' <div class="table-responsive"> <table class="table table-bordered table-striped"> <tr> <th>Customer Name</th> <th>Address</th> <th>City</th> <th>Postal Code</th> <th>Country</th> </tr> '; if($data->num_rows() > 0) { foreach($data->result() as $row) { $output...