How to get data/meta data from the wp_options table in the wordpress .In this table, option_values are(some values) saved as serialized .So directly we can’t get those values.Now I’ll tell you easy method to get this value from wp_options table. I…
Author: smith
Cakephp check if user is logged or not
How to check if user is logged or not in the view or controller in cakephp.Very simple.Look at this function.It will return current logged user details.So you can check this by using user ID or user name to if user…
Magento can't login admin panel after installed
If you are not installed magento previously this is a problem you faced.After installation magento returns a message that the installation was successful and you can proceed to the administration panel. Although providing the correct username / password, magento does…
CodeIgniter fetch data to the view without controller
How to direct call to the function from the view without using controller in CodeIgniter.Here is a example to it.Simply call to helper function and it get data from model. First you load helper file from your controller.
PHP Send SMS with SMS Gateway
How to send SMS via SMS Gateway in PHP.I found the sms gateway to do this.But it is gives only 25 free sms per account.But you can create email account and register the following web site and send sms.Only you…
CodeIgniter creating pagination
I’ll use CodeIgniter’s pagination library to show you how you can create a paginated list of results from a MySQL database. Along the way, you’ll also see how to fix a problem with the pagination links that the library might…
CodeIgniter send and retrieve data using flash messages
How to send and get data by using flash messages in the codeigniter.This is simple and passing data using array.But if you reload/refresh the page, your data may not be displayed.Because data passing using flash message.However you can pass huge…
CodeIgniter get site url
How to get site url of the codeigniter.You can use this method in the controller,model and view files. First, you have to call this URL Helper file. $this->load->helper(‘url’);
CodeIgniter get URL parameters
How to fetch url parameters in the codeigniter.This is very simple.All data get as an array. Example http://www.mysite.com/index.php/deposit/11/3 index.php => 0 deposit => 1 11 => 2 3 => 3 Here is a method to get parameters.
JQuery Image resize Example
How to dynamically image re-size after loaded images, by using JQuery.This script resizing images without distorting the proportions.jQuery match all img elements and using the each function, we go through each one of them resizing them as necessary.