
Search In
We can insert the json data in to mySQL using php .please see the below example for processing json data to mySQL.
Example : -
Suppose we have a file having json data like below -
{"FirstName":"ravi", "LastName":"srivastva"}
For processing
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use fstat() function in php ?
The fstat() function is used for returning information about an open file.
syntax of fstat() function
fstat(file)
file is a required parameter
Open the code view of any site :
<?php
$lines = file('http://www.whoznext.com/'); //Site url
foreach ($lines as $line_num => $line) { // iterate through each line
echo "Line #{$line_num} : " . htmlspecialchars($line) . "<
To make a unique field and do not allow duplicates records in openerp, below is the solution
In .py file use this code:-
class course(osv.osv):
_name="course"
_columns={
"name":fields.char("Name"),
}
_sql_constr
Android developers do face the exception when sending large file from Android device to a server. To send large file to a server you have to make the file into small size chunks and then send it to the server.
setChunkedStreamingMode(1024), this met
If you want to import customize module in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
import decimal_precision as dp
from osv import fields, osv, orm
from tools.translate import _
import one2many_sorted
cl
If you want to use method decorators in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
model = self.pool.get(MODEL)
ids = model.search(cr, uid, DOMAIN, context=context)
for rec in model.browse(cr, uid, ids, co
If you want to Computed fields in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
upper = fields.Char(compute='_compute_upper',
inverse='_inverse_upper',
search='_search_
If you want to use name_get method in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
def name_get(self, cr, user, ids, context={}):
if not len(ids):
return []
res = []
for r in self.read(cr, user, ids, [’name’,’zip
If you want to make wizard execution
in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml
file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</fi