Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old February 13th, 2006, 02:53 PM
Newbie
 
Join Date: Feb 2006
Posts: 1
Default ColdFusion and MySQL

I'm building a page where users can view an events page, however in my "Price" field, nothing shows up in the events page after I'm done inputting the data for that field on the back-end content management site. I've checked all my variables to make sure they correspond with the field name I defined in my MySQL table. The program is picking up the default value of "0.00" but as I said it won't pick up any other value I input on the client-side. I have the field type set to float (4,2). Any help would be MUCH appreciated, this has been torturing me for probably the better part of a week.
Reply
  #2  
Old October 17th, 2006, 07:42 AM
rameshsambu's Avatar
Newbie
 
Join Date: Oct 2006
Age: 27
Posts: 15
Default

I think this can be solved by doing the following

in the mysql table change the price field datatype to double, put nothing for the length and 0.0 for default.

in the code to insert data into the price field use

insert into ... (, , price, ) values (
...,
....,
<cfqueryparam cfsqltype="cf_sql_double" value="#form.price#">
, ... )

try this and i think this will solve your headache
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 204,687 network members.
Post your question now . . .
It's fast and it's free

Popular Articles