| Index
» Projekty
» phpMyEdit
» Fórum
» Not sure about this. |
 |
Topshed
Založený: 04.11.2007
Príspevky: 20
Zaslal: 2007-12-15 02:42
Návrat hore
Odpovedať s citátom
|
I need to replace a zero on a numeric field with " " in the table output
EXAMPLE
Normal output would read 'Jul-1933'
but somtimes I end up with 'Intact-0'
where 'intact ' would look so much nicer.
| Kód: |
| $opts['fdd']['yy_cut'][sql] = IF(TRIM(yy_cut) != "", yy_cut=" "); |
But I cannot seem to get past things like unexpected '='
I also mucked around with 'colattrs' and got very confused
Can anyone assist me with the correct syntax please
thanks
Roy...
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2007-12-18 08:59
Návrat hore
Odpovedať s citátom
|
you should enclose it in ' like
$opts['fdd']['yy_cut'][sql] = 'IF(TRIM(yy_cut) != "", yy_cut=" ")';
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|