Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Implementing Pagination in CakePHP

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' =>

How to change number of products displayed per row in WordPress

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

How to utilize use of count() function in php

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

Exceptions in CakePHP

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

mysqli_num_fields() in PHP

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

How to handle default error in PHP

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

How Can You Test WordPress Site Backup

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

How to get the max value from given multidimensional array using PHP?

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

compact() and extract() functions in PHP

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.

How to fetch data from database in PHP

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

1 12 39
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: