Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 13-01-2008, 05:52 PM
silentD's Avatar
New kid on the block
 
Join Date: Jan 2008
Location: Kuala Lumpur
Posts: 5
Rep Power: 0
silentD is on a distinguished road
Unhappy How do i fix data truncated error in mysql?

Hi!
How do i fix the error that appear in my system called
"Data truncated for column 'designation' at row 1"

the "designation" field is a drop down menu that enable user to choose designation that they want. here is the code for the table
<select name="designation" size="1">
<option selected="selected" value=''>-Select Designation-</option>
<option value='Dean'>Dean</option>
<option value='Assistant Registrar'>Assistant Registrar</option>
<option value='Program Manager'>Program Manager</option>
<option value='Lecturer'>Lecturer</option>
<option value='Other'>Other</option>
</select>


My system works fine before and i didnt do any changes to it.
Please help me...
Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 13-01-2008, 11:29 PM
wingwp's Avatar
Senior Webmaster
 
Join Date: Oct 2003
Location: Selangor
Posts: 248
Rep Power: 64
wingwp is on a distinguished road
some1 must hv change Ur table's column design or da new value is too long

btw U shld design Ur table to store designation as Id rather than full sentence, U can save alot of table space by doin tis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 13-01-2008, 11:34 PM
silentD's Avatar
New kid on the block
 
Join Date: Jan 2008
Location: Kuala Lumpur
Posts: 5
Rep Power: 0
silentD is on a distinguished road
How do i fix data truncated error in mysql

i've changed the table field of 'designation' type from enum to varchar(20) and its work. By the way, changing the table name from designation to id didnt do any changes and still appear the 'data truncated' error to my webpage. I want the type to be 'enum' rather than varchar. Please help me on this...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 14-01-2008, 03:19 PM
wingwp's Avatar
Senior Webmaster
 
Join Date: Oct 2003
Location: Selangor
Posts: 248
Rep Power: 64
wingwp is on a distinguished road
No I min store Ur designation data like below & change data type to INT, U can save alot of space from CHAR to INT & ofcos da length of data, for Ur future table design la

<option value='1'>Dean</option>
<option value='2'>Assistant Registrar</option>
<option value='3'>Program Manager</option>
<option value='4'>Lecturer</option>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB 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
How do i display data from mysql database? silentD Website Programming 2 14-01-2008 10:16 AM
problem import data drpd ms excel ke MySQL mys_az Website Programming 6 20-09-2007 11:54 AM
Export hugh data from MySQL Kongtechnology Website Programming 3 16-07-2007 04:35 PM
Internal Server Error - ASP error ladyheart2612 Website Programming 0 21-07-2005 09:22 AM
mysql+php : help find the error progmania Website Programming 5 03-09-2003 12:42 PM



All times are GMT +8. The time now is 07:00 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58