Jump to content

[SOLVED] not auto incrementing in DB


dennismonsewicz

Recommended Posts

I have a joomla component i have custom built but for some reason when it installs the main menu for the admin the main menu link does not auto increment in the DB (row id). Everything else does though.

 

I understand that this is a third party script question but the auto incrementing is where my problem lies.. any help?

Link to comment
Share on other sites

There really is nothing to it.

 

Set it in your DB and when you do a insert, make sure you don't add to that field.  Many people will add it to their insert statement as a NULL or ' ', but just exclude it altogether.

 

Also, can't help you much without seeing the code that pertains to your issue.

Link to comment
Share on other sites

well the way the Joomla backend loads the menu structure into the DB is by an XML file here is the bit of code containing the XML code:

 

<menu>Tmo Deductible</menu>
		<submenu>
			<menu link="option=com_tmodeductible&section=phoneplan">Phone Deductibles</menu> 
			<menu link="option=com_tmodeductible&section=plan_by_state">Deductibles By State</menu>
		</submenu>

 

The submenu's rowid auto increments in the DB bu the main menu does not

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.