Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9323421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T04:20:25+00:00 2026-06-19T04:20:25+00:00

I have table called notifications and i have id auto_increment primary key . Complete

  • 0

I have table called notifications and i have id auto_increment primary key.

Complete Table Structure.

CREATE TABLE IF NOT EXISTS `notifications` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `sender_picture` varchar(300) NOT NULL,
  `title` varchar(300) NOT NULL,
  `message_link` varchar(500) NOT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  `status` tinyint(4) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Now problem is that auto_increment should insert record as below.

1 record
2 record
3 record

But its really strange why my phpmyadmin show me record as below.

1 record
3 record
2 record

Is there any options do i need to set in phpmyadmin.

Thank You.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T04:20:26+00:00Added an answer on June 19, 2026 at 4:20 am

    Actually it is not a problem. Leave the records as is because those records are inserted randomly on the table.

    Just do the ordering you desired during the projection (SELECT statement). eg,

    SELECT * 
    FROM   TABLENAME 
    ORDER  BY colName ASC // or DESC for descending
    

    The clients will not look on the database but on the application you created :D

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one table called users with a PRIMARY key on users.zbid . However,
Assuming I have table called events with the columns INT id DATETIME start_time DATETIME
I have table name called Person with following column names P_Id(int), LastName(varchar), FirstName (varchar).
I have a model called Notifications, which basically acts as a join table between
I have a SQL Server 2005 table called 'Contracts': CREATE TABLE Contracts ( ContractNo
I have a table called notifications in my DB and a table called notes.
I have table called comments with following structure: id | entry_id | date |
I have a table called Visits : ID(PKey,Int) PatiendID(int), DoctorID(int), ExpectedDate(date), ActualDate(date), How can
I have a table called notification , with two columns: provider email The values
I have table called stats . In am inserting yes or no in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.