Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  NULL fields getting "Un-Nulled" ?

phpMyEdit Configuration     NULL fields getting "Un-Nulled" ?
Odoslať novú tému   Odpovedať na tému    
 
brianadkins     Založený: 30.09.2005   Príspevky: 3  
Príspevok Zaslal: 2005-09-30 23:34
Návrat hore  Odpovedať s citátom     

I'm using phpmyedit to edit a table that as several fields that are 'NULL' by default. However, when I edit a row in the table, all NULL fields are turned into non-NULL blank values. This happens even if I'm not touching those specific fields with my edit.

Is there any way to get phpmyedit to leave a NULL value alone without turning it into a non-null blank?

thanks,

-Brian

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-10-01 09:46
Návrat hore  Odpovedať s citátom     

I think that the best way of doing this is to use 'sqlw' to explicitly write NULL back into the column.

 
brianadkins     Založený: 30.09.2005   Príspevky: 3  
Príspevok Zaslal: 2005-10-01 14:22
Návrat hore  Odpovedať s citátom     

'sqlw' => 'IF($val_qas = "", NULL, $val_qas)'

that did it... in fact this ability is specifically documented in the online help.... just wasn't looking hard enough I guess...

thanks,
-Brian

 
pgowling     Založený: 20.02.2004   Príspevky: 6  
Príspevok Zaslal: 2008-03-10 08:52
Návrat hore  Odpovedať s citátom     

This works perfect! Many thanks :-)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov