HighDots Forums  

OT: mysql DB question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss OT: mysql DB question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deon H
 
Posts: n/a

Default OT: mysql DB question - 03-29-2009 , 11:56 AM






Hi there. (I know this is propably not the right forum to ask here, but
the other forums don't help a lot. Please help me.)



I have been using phpMyAdmin for a couple of years now and simply love
it.
I have just created a new DB with 6 fields of which the 1st one is
named: prod_id.
type: smallint

The rest of the fields are the default settings as usual. I have changed
this prod_id to the prim key.

For some reason which I cannot figure out why, does not show under
"extra" as "auto_increment".

I have double chacked the other db's I have created exactly as I have
done this one, and there is says "auto_increment".
When I now try to add a record to the DB, I get this error: "Field
'prodid' doesn't have a default value"

Please advise where I am doing something wrong.

Sincere regards,
Deon

Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: mysql DB question - 03-29-2009 , 12:10 PM






this prod_id to the prim key.
-----------^^

"Field 'prodid' doesn't have a default value"
-------------^

Typo?


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Deon H" <deonNOSPAM (AT) pess (DOT) co.za> wrote

Quote:
Hi there. (I know this is propably not the right forum to ask here, but
the other forums don't help a lot. Please help me.)



I have been using phpMyAdmin for a couple of years now and simply love
it.
I have just created a new DB with 6 fields of which the 1st one is
named: prod_id.
type: smallint

The rest of the fields are the default settings as usual. I have changed
this prod_id to the prim key.

For some reason which I cannot figure out why, does not show under
"extra" as "auto_increment".

I have double chacked the other db's I have created exactly as I have
done this one, and there is says "auto_increment".
When I now try to add a record to the DB, I get this error: "Field
'prodid' doesn't have a default value"

Please advise where I am doing something wrong.

Sincere regards,
Deon


Reply With Quote
  #3  
Old   
Deon H
 
Posts: n/a

Default Re: mysql DB question - 03-29-2009 , 12:38 PM



"Murray *ACE*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in news:gqo6hr$cbm$1
@forums.macromedia.com:

Quote:
this prod_id to the prim key.
-----------^^

"Field 'prodid' doesn't have a default value"
-------------^

Typo?


Yes, it's a type; my fault. Prim key is prodid.

Deon


Reply With Quote
  #4  
Old   
Mark A. Boyd
 
Posts: n/a

Default Re: OT: mysql DB question - 03-30-2009 , 08:26 AM



Deon H posted in macromedia.dreamweaver

Quote:
I have been using phpMyAdmin for a couple of years now and simply
love it.
I have just created a new DB with 6 fields of which the 1st one is
named: prod_id.
type: smallint

The rest of the fields are the default settings as usual. I have
changed this prod_id to the prim key.

For some reason which I cannot figure out why, does not show under
"extra" as "auto_increment".
Can you export the structure for this particular Table and paste the
results in here? The stuff beginning with:

CREATE TABLE `tablename` (



--
Mark A. Boyd
Keep-On-Learnin'


Reply With Quote
  #5  
Old   
Deon H
 
Posts: n/a

Default Re: OT: mysql DB question - 03-30-2009 , 01:53 PM



Hi Mark.

Thanx for your reply. I managed to solve the problem. There was a checkbox
at A_I which I had to tick. All is running smooth now.

Thanx again.
Deon


Quote:
Can you export the structure for this particular Table and paste the
results in here? The stuff beginning with:

CREATE TABLE `tablename` (





Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.