Anonymosly User

codeigniter constructor

function __construct() {
        parent::__construct();
        $this->output->set_header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
        $this->output->set_header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
        $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0");
        $this->output->set_header("Pragma: no-cache");
        $this->load->helper(array('form', 'url'));
        $this->load->model('home_model');
        $this->load->library('session');
    }
   
----------------------model.php-----------------------------------
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Home_model extends CI_Model
{    /* CONSTRUCTOR FUNCTION */
    var $db;
    function __construct() {
        parent::__construct();
        $this->db = $this->load->database('default', TRUE);
    }
   
   
   
   
} //class end

?>

pagination css

        <style>
                        #pagination a {
                            background-color: white;
                            color: #369;
                            border-color: #cfcfcf;
                            font-weight: bold;
                            padding:10px;
                            font-size:18px;
                            border-radius:3px;
                            border:3px solid white;
                            display:inline;
                        }
                       
                        #pagination strong {
                            background-color: white;
                            color: #000000;
                            border-color: #cfcfcf;
                            font-weight: bold;
                            padding:10px;
                            font-size:18px;
                            border-radius:3px;
                            border:3px solid white;
                        }

                    </style>
                            <center>
                            <div class="pagination-bar text-center">
                                <?php if(!empty($pagination)){echo $pagination; } ?>
                            </div>
                        </center>

pagination in codeigniter

$offsetval = 0;
        if(!empty($_REQUEST['per_page'])){
        $offsetval = $_REQUEST['per_page'];
        }
        $data['base'] = BASEURL;
        $per_pg = 10;
        $offset = $offsetval;
        $config['first_link'] = 'First';
        $config['base_url'] = $data['base'] . "blogs/index?";
        $config['per_page'] = $per_pg;
        $config['uri_segment'] = 6;
        $config['full_tag_open'] = '<div id="pagination">';
        $config['full_tag_close'] = '</div>';
        $tcount = $this->blog_model->bloglistcount();
        $config['total_rows'] = $tcount;
        $data['blogs'] = $this->blog_model->bloglist($per_pg, $offset);
        $this->pagination->initialize($config);
        $data['pagination'] = $this->pagination->create_links();
        $this->load->view('homeheader');
        $data['mostreadblogs'] = $this->blog_model->mostreadblog();
        $this->load->view('blogs/blogs',$data);
        $this->load->view('footer');

Bootstrap + js + array + json + modal Example

  function one()

  {

  document.getElementById("msg").innerHTML="<h3 class='text-center'> Welcome My Home</h3>";

  }

  

  

   var user = '[{"name":"Mahesh", "mobile":"9999999", "city":"bangalore"},{"name":"Ganesh", "mobile":"6767676", "city":"Delhi"},{"name":"Gopi", "mobile":"4545454", "city":"chennai"},{"name":"madhav", "mobile":"56565656", "city":"pune"}]';

  

  function two()

  {

  var myuser = JSON.parse(user); 

 

var data ="<table class='table table-bordered table-hover'>";    

data = data +"<tr> <th>Full Name </th>  <th> Mobile No</th> <th>City</th> </tr>";

 

for(var i=0; i<myuser.length; i++)

{

  data=data+"<tr>";

 

data = data + "<td>"+  myuser[i].name  +"</td>";

data = data + "<td>"+  myuser[i].mobile  +"</td>";

data = data + "<td>"+  myuser[i].city  +"</td>";

 

     data=data+"</tr>";   

}

data = data + "</table>";

document.getElementById("msg").innerHTML=data;

  }

  

  

  function three()

  {

  var myuser = JSON.parse(user);

  

  var msgdata = "We Have Following Users \n";

      for( var i=0; i<myuser.length; i++)

  {

  msgdata = msgdata + i + " : For : "+myuser[i].name + "\n";

  }

  

  var pos = prompt(msgdata);

// alert(pos);

 

if(pos>myuser.length-1)

{

alert("This User Does Not Exist, Try Other");

three();

}

  

  var data = "<table class='table table-bordered table-hover'>";

  data = data + "<caption> One User Details</caption>";

  

  data = data + "<tr>";

  data = data + "<th> Full Name</th>";

  data = data + "<td> "+ myuser[pos].name +"</td>";

  data = data + "</tr>";

  

  data = data + "<tr>";

  data = data + "<th> Mobile No</th>";

  data = data + "<td> "+ myuser[pos].mobile +"</td>";

  data = data + "</tr>";

  

  data = data + "<tr>";

  data = data + "<th> City </th>";

  data = data + "<td> "+ myuser[pos].city +"</td>";

  data = data + "</tr>";

 

data = data + "</table>";

document.getElementById("msg").innerHTML=data;

  }

  

  

  

  

  

  

How to post form data using angular js

$http({ 

url: "savemydata.php", 

method: "POST", 

headers: {'Content-Type': 'application/x-www-form-urlencoded'}, 

data: $.param($scope.user) })

.success(function(data, status, headers, config) 

alert(data);

$scope.user.fname="";

$scope.user.mobile="";

$scope.user.message="";

})

.error(function(data, status, headers, config) { 

alert(data); 

});  

Which is Best UI Development Training Institute In Bangalore

Attend 4 Days Free Classes
40 Hours Course Duration
HTML 4, HTML5, CSS , CSS 3.0, Bootstrap, Javascript,Jquery & Angular JS
Weekend & Weekdays Classes Available
8 Years Industries Experienced Trainer.

We provide training based on real time projects by real time industry experienced trainer, we follow the following below procedures..

 

Experienced Trainers

Learning with our trainers in Bangalore will helps you to learn technology in industry standards

Hands on Training

We are very sure that our training helps you to directly work in projects by giving hands on training

Flexible Timings

We work round the clock so if you need a professional training we will find the specific trainers

 

Affordable Fees

Our course fees is less compared to any other quality training providers in Bangalore

Placement Assistance

If our students need assistance in placement we sure that we will schedule interviews through our clients

10000+ students to believe

We already satisfied more students in this training industry to believe our professional ethics

Infocampus provides real time and placement focused Web Designing training in bangalore . We have designed our Web Designing course content and syllabus based on students requirement to achieve everyone's career goal.

In our Web Designing training program, you will learn Client and Server Concepts, CSS, HTML, DHTML, XHTML, HTML5, Java Script, real time project and Web Designing placement training.

Best Web Development Training In Bangalore BTM Layout, Bangalore with 100% Job Placements Guarantee

Attend 4 Days Free Classes 120 Hours Course Duration

 

HTML 4, HTML5, CSS , CSS 3.0, Bootstrap, Javascript, Jquery, PHP, MYSQL,AJAX,XML,Web Services, Codeigniter, CMS Tools Drupal,Wordpress...

 

Weekend & Weekdays Classes Available

 

8 Years Industries Experienced Trainer.

 

Help Line No: 080-60505064 / 09738001024

Pre-Requisite ? (Who can take this course)

Freshers (BE, BTech, BSc, BCA, MSc, MCA & any other graduates*) and designers who want to make career as a web developer, Front End Developer, User Interface (UI) Engineer, User Interface (UI) Developer, HTML/CSS Developer, Web Application Developers. A web designer who wants to improve his developer skills can also take up this course.

 

Codeigniter + Drupal7 + Html4 5 + CSS3 + PHP + Mysql Database + Java and Ajax Scripts + CMS Platforms + Advanced PHP Topics

 

100% Placements Guarantee in MNC and 2-tier Companies with Good Salaries : To our Clients, We send you for interviews till you get a job.

 

Courses are run in our Bangalore (BTM Layout, Marathahalli Braches) or can be on-site at client locations (Corporate Training) 50 hrs php training classes with live project to practice

Student Placement & Benefits

Our Placement Officer will send for Interviews till you Get Placed
We Provide Live Projects for you to Practice
Free Job Assistance and Certification
Lab Facility , Wifi Career Counselling
Mock Exams and Mock Interviews Conducted

Web Development Trainer Profile Details

Current Working Professional (TL)
10+ years of Total IT Experience with multiple roles like Software Software Development and Corporate training. Involved in several Application Development,Team Lead, Project Manager etc MNC Company
Have delivered 300+ Classroom Trainings and 50+ in-house Corporate Trainings at various IT Companies in India

What is a table in MySQL?

The usage of a database in such applications is an essential feature. In order to provide proper content for a given website, MySQL stores all the data in tables. Regardless of the prefix, each MySQL database table consists of rows and columns.

How to post form data using angular js

$http({ url: "process.php", method: "POST", headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data: $.param($scope.form1) }).success(function(data, status, headers, config) { $scope.finalmsg = data; $scope.form1.fname=""; $scope.form1.email=""; $scope.form1.mobile=""; $scope.form1.gender=""; $scope.form1.age=""; }).error(function(data, status, headers, config) { $scope.finalmsg = data; });

How to Delete / Remove all duplicate rows from mysql table

How to fetch all duplicate rows from mysql table Try The following SQL
-----------------------------------------------------------------------------------------------
DELETE t1 FROM email t1 INNER JOIN email t2 WHERE t1.id < t2.id AND t1.mobile = t2.mobile;

How to fetch all duplicate rows from mysql table

Try The following SQL
-----------------------------------------------------------------------------------------------
SELECT mobile FROM email GROUP BY mobile HAVING COUNT(mobile) >1

Important topics in Java Collections?

The structure must be elite. The usage for the key accumulations (dynamic clusters, connected records, trees, and hashtables) are exceptionally proficient. ii. The system needed to enable distinctive sorts of accumulations to work in a comparative way and with a high level of interoperability. iii. Extending as well as adjusting a gathering must be simple. Towards this end, the whole accumulations structure is planned around an arrangement of standard interfaces. A few standard executions, for example, LinkedList, HashSet, and TreeSet, of these interfaces are given that you may use as-is and you may likewise actualize your own gathering, on the off chance that you pick. An accumulations system is a bound together engineering for speaking to and controlling accumulations. java/j2ee classes bangalore

Do you have something-sell?

Post your ad for free on Firstenquiry.com

Post Your Ad
Post Requirement
Please Enter Details

Training & Courses  Job Seeker   Software Services  Other Services