Strip the " before you insert the number, store it as an int. Then just put
the " back on when you out put it.
BS code would go something like this:
<!--- action page --->
<cfset variables.imyInches = replace(form.myInches, '"')>
<cfquery>
insert into myTable(myInches)
values(#variables.myInches#)
</cfquery>
<!--- display page --->
<cfquery>
select myInches
from myTable
</cfquery>
<cfoutput query="myQuery">
#myQuery.myInches#"
</cfoutput>
Should be pretty cose, but I have been up all night, so who knows right?
--
Tim Heald
[EMAIL PROTECTED]
703-300-3911
-----Original Message-----
From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED]
Sent: Monday, March 13, 2006 6:33 AM
To: CF-Talk
Subject: Inches
Hi all,
Got a form to enter product size info that needs to take inches, ie 22"
How do I get this value into MSQL and then display it please?
Thanks, Jenny
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235178
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54