Codeigniter Archive

Database Handling in CodeIgniter

In this article, we will configure and work with database in same application “cidemo” as created in previous article of codeigniter, for that let’s create a new database

CodeIgniter Setup

CodeIgniter is one of the web application framework for PHP with MVC approach. It helps us to build faster web applications with many helpful code libraries and helpers.

print_r shortcut in codeigniter

In codeigniter or php, we frequently use these lines for debugging: echo “<pre>”; print_r($myArray); echo “</pre>”; die; To avoid these lines to write again and again, I have defined a function in my

Paypal Integration in php

function PaymentDetails() { global $wpdb; $current_user = wp_get_current_user(); $postvalues = (object)$_POST; // Set request-specific fields. $paymentType = urlencode(‘Authorization’); // or ‘Sale’ $firstName = trim($postvalues->cc_first_name); //card holder first name $lastName = trim($postvalues->cc_last_name); //card holder last name $creditCardType = trim($postvalues->cc_type);