Solved

Joomla assigns ID=0 to all new articles i create

Posted on 2011-09-15
4
577 Views
Last Modified: 2012-05-12
So i had a joomla 1.5 site and created a new joomla 1.6 site. I merged the old 1.5 jos_content table to the new 1.6 one and uploaded it to the new site. I now have all my old articles like I want but since then, everytime i try to create a new article it assigns it with an ID=0. How can i reset this to start adding to where the new jos_content table ends?
0
Comment
Question by:javajamminman
  • 3
4 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36546675
So this is an AUTO_NUMBER field? If so, you can try seeding it to new starting point. i.e., if your old jos_content ended at 999, you can set AUTO_NUMBER = 1000.

ALTER TABLE jos_content AUTO_INCREMENT=1000;

Open in new window

0
 
LVL 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 500 total points
ID: 36546677
0
 

Author Comment

by:javajamminman
ID: 36546690
Thanks guys. I actually found the same answer you guys just posted.

http://www.webmasterworld.com/databases_sql_mysql/3569905.htm

I imported via excel and forgot that it did not set the auto increment. A minor overlook that caused me a big headache. thanks
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 36546700
Glad it is working for you now.
Best regards and happy coding,

Kevin
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question