This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Feature requests » how to serialize
how to serialize [message #85284] Mon, 14 September 2009 16:09
benakacha  is currently offline benakacha
Messages: 18
Registered: August 2009
Junior Member

How to Save the contents of a text field to a formilaire to the database with php5

Here are the piece attached form

public function getNbjc()
$total = strtotime($this->getDatefinc()) -strtotime( $this->getDatedebutc());

return $total/86400 ;

will be calculated in the Nbjc and display it in their fields and then stores it in the database since Nbjc is the difference between two dates

schema.yml -->>>
_attributes: { phpName: PersoConge }
id: { type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true }
employe_id: { type: INTEGER, size: '11', required: true, foreignTable: perso_employe, foreignReference: cin, onDelete: RESTRICT, onUpdate: RESTRICT }
typedeconge: { type: VARCHAR, size: '255', required: true }
datedebutc: { type: DATE, required: true }
datefinc: { type: DATE, required: true }
nbjc: {type:integer ,required: false }

  • Attachment: Capture.png
    (Size: 141.46KB, Downloaded 94 time(s))

Previous Topic:subtracting days from 2 dates
Next Topic:DatabaseSessionStorage auto_start param
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software