Blog

Archive for the MySQL Category


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

Model

<?php
class UserDashboardModel extends CI_Model
{

// After admin is logged in
// delete user

Read more…


Insert a User with Admin Privileges into a Database Using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

Model

<?php
class UserDashboardModel extends CI_Model
{

// After Admin is logged in insert user
public function
Read more…


Insert a Submitted User into a Database Using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

Model

<?php
class UserDashboardModel extends CI_Model
{

// Registration form insert user
public function insert_user($post_data)

Read more…


Check a Submitted Email Against a Database Table to Ensure it hasn’t Already Been Added using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

Model

<?php
class UserDashboardModel extends CI_Model
{

// Check login email against
// users table in database
Read more…


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

View

<?php
class UserDashboardModel extends CI_Model
{

public function update_single_password($post_data, $user_id)
{

Read more…

To Top ↑