Blog

Archive for the PHP Category


Update a Password for a Single MySQL User in a Table Row using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php
class UserDashboardModel extends CI_Model
{

public function update_single_password($post_data, $user_id)
{

Read more


Update a Single MySQL Table Row using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php
class UserDashboardModel extends CI_Model
{

// Update a single database row
public function update_single_record($post_data, $user_id)

Read more


Display a Single MySQL Table Row using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php
class UserDashboardModel extends CI_Model
{

// Show a single table row
public function show_single_user($user_id)

Read more


Display all MySQL Table Rows using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php
class UserDashboardModel extends CI_Model
{
// Get all rows from “users” table
public function show_all_users()

Read more


Native Input, Session, and Flash Variables in CodeIgniter
Posted on June 26, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

<?php
// Run a filter globally to fight against XSS attacks by
// updating the “application/config/config.php” file to “TRUE” like below:
$config[‘global_xss_filtering’] = …

Read more