cbek
Založený: 25.10.2008
Príspevky: 27
Zaslal: 2009-04-15 16:18
Návrat hore
Odpovedať s citátom
|
Hi,
I have to update a table with PME.
One of the colunms is a date which can be NULL.
At this time, when the field is empty, I have 0000-00-00 in mysql !
How can I have a NULL value instead ?
Thanks,
Cyril.
|
cbek
Založený: 25.10.2008
Príspevky: 27
Zaslal: 2009-04-15 16:42
Návrat hore
Odpovedať s citátom
|
I am answerign myself !
My code was:
| Kód: |
$opts['fdd']['Valid_Date'] = array(
'name' => 'Valid Date',
'select' => 'T',
'maxlen' => 10,
'sort' => true
); |
I just add the following code:
| Kód: |
| $opts['fdd']['Valid_Date']['sqlw'] = 'IF($val_qas = "", NULL, $val_qas)'; |
If this can help you ;-)
Cyril.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|