Discy Latest Questions
if you want to change your default timezone according to your client country then you can change it. you can change it in config/bootstrap.php file.Below is south africa time zone Code : // you can enter according your country
Anyone know this please explain …………
In app.php add index in data source array 'flags' => [ PDO::MYSQL_ATTR_INIT_COMMAND => "SET @@SESSION.sql_mode='NO_ENGINE_SUBSTITUTION';" ]
Cookie: A Cookie is a small file sent by the server to preserve state full information for a user. It is stored on the user’s computer and sent to the server every time the user makes a request for the ...
Please explain ….
Please explain this if you want delete a row from db table then you can use below code. (cakephp 3.6 ) // $id = your id
But the updateAll() method, which updates multiple rows, does support MYSQL snippets I am not sure The First is newExpr to be updated, and the second where conditions for which rows to update.
How to order by result through the CakePHP model. I have written a sample code to describe. $this->Login->find(‘all’, array( ‘order’=>array(‘FIELD(Login.profile_type, “basic”, “premium”) DESC’) ));
Recursive function in php use to recall itself during its execution. This enables the Recursive function to repeat itself several times, outputting the result and the end of each iteration. Below is a video example of a recursive function.
In a programming language, a constant is a value that never changes. The other type of values that programs use is variables, symbols that can represent different values throughout the course of a program. Constants are also used in spreadsheet ...