Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 12th, 2009, 04:09 AM
Registered User
 
Join Date: Jan 2004
Location: Tawau, Sbh, Malaysia.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default datatype for product table

Dear all,

I check the datatype for the product, for the price is using float(4,2)
Today I read from this website
http://drupal.org/node/23627

It said not to use float.

And I personal experience is
I set the datatype as float and I didn't set the Length/Values
What I was found is, when I enter record not .5 it unable to search it out,

for example, I insert a record is 1.5, I select the value, it able to come out, but if I insert a record is 35.9 , then I can't get any result.

I would like to ask professional PHP programmer, should we should float or not for currency?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Product code generator yogeshyl Excel VBA 1 October 3rd, 2007 10:50 AM
Change image to product name zulf BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 June 14th, 2007 12:55 AM
A product development problem. madhukp Pro VB 6 3 December 8th, 2005 01:44 PM
Advice, please. understanding product tracking macinslaw MySQL 0 December 29th, 2004 01:39 PM
Prevent Product Duplicates lucian Dreamweaver (all versions) 1 September 20th, 2003 02:08 PM



All times are GMT -4. The time now is 07:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.