Ask a Question related to Coldfusion Database Access, Design and Development.
-
woolwerks #1
Trim extranous characters before displaying
I'm using CF MX with MS SQL Server and I can't seem to get the trim function to
work. As an example, I have a field that has a maximum of 100 characters. When
it displays in the browser, the unused characters appear as spaces after the
actual information. I'm using the following commands in my CFC file:
<cfquery datasource="#ds#">
UPDATE RRNEWS
SET TITLE='#Trim(ARGUMENTS.TITLE)#',
BODY='#Trim(ARGUMENTS.BODY)#',
PHOTO='#Trim(ARGUMENTS.PHOTO)#'
WHERE ARTICLEID=#ARGUMENTS.ARTICLEID#
</cfquery>
In the display page, the code is:
<p><b>#news.title#</b><br>
<img src="images/#news.photo#" border="0" align="right" hspace="2"
vspace="5">#news.body#</p>
</cfoutput>
Does anyone have any ideas as to why this isn't working or what I might try to
correct the problem?
Thanks,
Justin:beer;:confused;
woolwerks Guest
-
Pages displaying to trim marks
I have just updated acrobat from version 7 to 9... I have found 9 is doing something very weird where when I open up a file that I know has crop... -
Displaying UTF-8 characters
Hi, I have a question about displaying/input UTF-8 characters. Say, I have a Text component & I need it to display some UTF-8 characters: (e.g.... -
Problem displaying Japanese characters
Hi, I want my application to have "Lucida Grande" font. Since I am not sure that every platform has it locally installed, I embedded it. I... -
Displaying special characters in datagrid
Hi, Can anyone help me out, how to display special characters like '!', extra spaces between words, etc., in Datagrid. The above said characters... -
how to read japanese characters (multilingual characters) from a text file and save them in Access database ???
HI All i m trying to read a text file, having some japanese characters and saved as UTF-8 encoding. I m using ASP,FSO ... my code is below,... -
PaulH *TMM* #2
Re: Trim extranous characters before displaying
woolwerks wrote:
how are these columns defined?> it displays in the browser, the unused characters appear as spaces after the
> actual information. I'm using the following commands in my CFC file:
PaulH *TMM* Guest
-
woolwerks #3
Re: Trim extranous characters before displaying
The columns are defined as follows:
articleid, int, 4, not null, identity, identity seed 1
title, char, 100, allow nulls
body, char, 1500, allow nulls
photo, char, 40, allow nulls
woolwerks Guest
-
PaulH *TMM* #4
Re: Trim extranous characters before displaying
woolwerks wrote:
if i remember right, char columns get padded. maybe varchar?> The columns are defined as follows:
>
> articleid, int, 4, not null, identity, identity seed 1
> title, char, 100, allow nulls
> body, char, 1500, allow nulls
> photo, char, 40, allow nulls
PaulH *TMM* Guest
-
woolwerks #5
Re: Trim extranous characters before displaying
Paul-
That was it! Thanks a million for the assist. It is much appreciated.
Thanks,
Justin
woolwerks Guest



Reply With Quote

