Kahuki Webmaster Forum and Discussion Community  

Go Back   Kahuki Webmaster Forum and Discussion Community > Website Development & Management > Programming > PHP



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2007, 08:28 AM
oximo's Avatar
Member
 
Join Date: Oct 2006
Posts: 74
oximo is on a distinguished road
mysql insert error?

i have created table in mysql: +-----------------+------------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+------------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | amount | decimal(10,2) unsigned | NO | | NULL | |


currently when user key in the amount. it's correctly insert to the table but got 1 case where when user keyed in amount 580, but the inserted value was 99999999.99 i'm not sure why this is happen. can any tell me how i have to debug my code regarding this matter. thank you

Reply With Quote
  #2 (permalink)  
Old 05-28-2007, 10:57 AM
Rookie
 
Join Date: Aug 2007
Posts: 5
Pggar is on a distinguished road
Perhaps it would help if you gave us an indication of what you are using to insert your values? I'd pay particular attention in your table to the decimal(10,2) in your table when letting us know your reply. Add detail and I'll flesh out your answer.

Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Fell and now im getting a error saying "Lens error, Restart camera" when i do that it does not work? aaa General Discussions 5 05-06-2007 05:01 AM
how to connect mysql using php 5?mysql is not activated by default...so error message is shown....what to do? Jason M PHP 2 03-15-2007 06:25 PM
Mysql error help highly appreicated!? melindahoxe PHP 1 03-15-2007 03:58 PM
what does this mean-"mysql connection error: Lost connection to MySQL server during query "? Kedar PHP 2 02-20-2007 03:36 PM
cd burner recognized, but when I insert a cd, it says try another kind? M.K.A. General Discussions 3 12-24-2006 12:26 AM


All times are GMT. The time now is 09:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0