Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82460

How to transfer a field to another field

$
0
0

When I use DataTables editor to receive data in the PHP backend,The value of GQ field is obtained by the difference between xdtime and wctime, not from the input value, My method is like this:

->fields(
Field::inst( 'xdtime' ),
Field::inst( 'wctime' ),
Field::inst( 'gq' )
->setValue(round((strtotime(Field::inst( 'wctime' ))-strtotime(Field::inst( 'xdtime' )))/3600/24)),

but it's wrong,How is the right way to get it?

Greetings


Viewing all articles
Browse latest Browse all 82460

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>