
Search In
Pagination:
It is used to limit the number of records to be displayed in a page. In cakephp we can easily implement pagination. We can use pagination by putting the following code in controller:
public $paginate = [
'limit' =>
WooCommerce- CHANGING THE NUMBER OF PRODUCTS DISPLAYED PER ROW
Hello Readers !
There is no rocket science used for changing the number of products displayed per row below I am providing simple and short method.
Here, I am using loop_shop_columns fi
what is count() function
The count() is utilize to count all data elements in an array, or in other word we can say The count() function returns the number of elements in an array.
You can see below example of count() function.
<?php
CakePHP uses the exceptions internally to show the logical cake PHP errors. All of the exceptions that occur in CakePHP raises a CakeException.
CakePHP is also having the number of exception classes that we can use for HTTP errors.
For congiguring
The mysqli_num_fields() function is used to display the number of fields in a result set. In other words, you can say that it returns the number of columns that is coming from a select query.
Syntax:
mysqli_num_fields(result);
In above syntax, th
We can handle default error in PHP in a very simple way. This can be done by sending an error message with its filename, error line number and a message that describes the error to the browser.
Error handling plays an important role whenever we make
In case you are managing WordPress websites for long, then you know about the need for taking regular backups. Backup save from a lot of trouble in case of any unexpected problem.
Furthermore, to take a regular backup, it’s also essent
Hello Reader! If you having an multidiamensnal array and you want to get the max value from a single element key then you see the example below:-
[0] => stdClass Object
(
[id] => TRF1254
[cust] => CUST9897
[amoun
PHP provides two functions, extract( ) and compact( ), that convert between arrays and variables.
Both compact() and extract() are Array functions of PHP
compact():
The compact() function is used to create an array from variables and their values.
For fetching data from database in php, first we have to create a connection from database by using following code.
<?php
$servername = "localhost";
$username = "root";
$password = "pass";
$database = "demo"; //this will contain na
