Code Canal is the simple Web resource site for WordPress, Magento and other CMS and frameworks, with easy to understand technologies and provides easy tutorials for the creating and editing site.
Our Latest Tutorials Guide for WordPress :
What are the technical reasons for why one shouldn't use mysql_* functions? (e.g. mysql_query(), mysql_connect() or mysql_real_escape_string())?
Why should I use something else even if they work on my site?
The MySQL extension:
Is not under active development
Is officially deprecated as of PHP 5.5 (released June 2013).
Has been removed entirely as of PHP 7.0 (released December 2015)
This means that as of 31 Dec 2018 it will not exist in any supported version of PHP. Currently, it only gets security updates.
Lacks an OO interface
Non-blocking, asynchronous queries
Prepared statements or parameterized queries
Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL.
If you try to delete orders in the backend, you will find out that you can only set the status to “cancelled” and the order is still there. Unfortunately, Magento doesn’t allow us to delete those via administration, so you will not find any “Delete order” button. This can be quite frustrating both to developers and the merchants.
Here we will see how to Increase The Database Upload Size In Wamp Server.
Go to your Wamp installed directory and follow the below steps and open the "phpmyadmin.conf" file
Sometimes we need to add active class to our custom menu items or sidebar menus. Simple bit of jQuery to add an active class to the current navigation item based on the page url.
Since the release of WordPress 4.2, support for emoji icons has been added into the mix of the many ongoing upgrades to the WordPress core. This has been continues with mixed reviews, in some cases emojis can be a welcomed fun upgrade to spice up your blog but from the more professional side of things they aren’t really needed.
Here we will see ajax login without using a plugin in WordPress. Follow the simple steps and learn this easy tutorial.
Sometimes empty P tags occurs issues in design. So we need to remove empty p tags from custom shortcode in WordPress. Herer we will see how to remove theme.
Put the following code in function.php file. function.php file is located in root directory of the active theme folder.
I recently developed an internal website for one company that requires to be accessible to employees only. I decided to just limit access to by IP address. This way everyone on the office network could access easily, but outside the network they would get an access denied message.