
Search In
Hello reader's!
On a given number format if you want it to be customize like a figure with separated by (,)
like 128,347,556. By using a function and in the function we will Preg Match the string with every hundreds and thousands
You can use the co
On the execution of exe file you must need the property of header like Description, Type and Disposition
For making the strict/force download of a file in PHP you have to use the code below:-
<?php
$FileName = "http://abc.com/example.exe
Using the PHP will give you several benefit to use code what you want.
And taking the number from any given string can be by diffrent - diffrent methods
lets se the example below:-
$myString = "I have 8 apples";
preg_match("|\d+|", $s, $myString);
v
Hello Reader's!
If you are new to wordpress and looking for the method to insert form data into table, Then you can use the Wordpress liberary code to do that:-
<?php
global $wpdb;
$wpdb->insert('wp_custom_user',
array(
Current URL is : http://mysite.com/MyController/view/page1
but if you want something like :http://mysite.com/MyController/page1
means you want to hide action name from URL.
Then go to app/config/routes.php and type the below code.
Router::connect
JQuery uses a built-in .removeClass() method to remove a class.
For example:
<div class="demo">Hello </div>
To remove demo class in JQuery you need to execute the following code:
<script>
$( "div" ).click(function() {
$( t
If you want to mapped the records in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
# returns a list of summing two fields for each record in the set
records.mapped(lambda r: r.field1 + r.field2)
# returns a l
Low level sql is the cursor for the current database transaction and allows executing SQL directly, either for queries which are difficult to express using the ORM
For example you can take idea from below code-
self.env.cr.execute("some_sql", param1
Its indicate no selection constraint in database. Selection must be
set as a list of tuples or a callable that returns a list of tuples
In below code i have explain search_read
aselection = fields.Selection([('a', 'A')])
aselection = fields.Selectio
If you want to make a functionality that can be used anywhere in the code. For example, you want some method that can be called on the jquery selection and it can perform number of operations on the selection. For this, you can write a plugin.
For e
