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

  • SEARCH
  • Home
  • 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 6126057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:19:25+00:00 2026-05-23T16:19:25+00:00

I just deleted a row from my mysql table. Now whenever I write the

  • 0

I just deleted a row from my mysql table.

Now whenever I write the statement “INSERT INTO myTable” a new row is added at the position in the table where the last row was deleted.

How do I modify the “INSERT INTO myTable” statement so that rows are added to the bottom of the table?

EDIT:

For clarification this is the php code I use to print the stuff in the database

$result = mysql_query("SELECT * FROM People") 
or die(mysql_error());  

echo "<table border='1'>";
echo "<tr><th>FirstName</th> <th>LastName</th></tr>";

while($row = mysql_fetch_array( $result )) {
    // Print out the contents of each row into a table
    echo "<tr><td>"; 
    echo $row['FirstName'];
    echo "</td><td>"; 
    echo $row['LastName'];
    echo "</td></tr>";
} 
echo "</table>";

And it’s printing the last row I added in the middle of the table in the same position of the last row that I deleted.

  • 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-05-23T16:19:26+00:00Added an answer on May 23, 2026 at 4:19 pm

    This actually depends on storage engine and primary key. But better do not rely on the phisical order of the data, but specify ORDER BY in your queries.

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

Sidebar

Related Questions

I just want to see what files were modded/added/deleted between 2 arbitrary revisions. How
I just did a delete from table How do I roll back or undelete
i m using jQuery.get() to delete row from a table from a page main.php
I've been using PHP to correlate my HTML table's row ID's with my MySQL
Possible Duplicate: outputting values from database into html table PHP I am trying to
I'm trying to delete one row of data from a MySQL database (innodb) in
The situation is that I deleted rows from the database and now they are
Just wondering which is faster: DELETE FROM table_name WHERE X='1' DELETE FROM table_name WHERE
Hey, I need to delete all images from a string and I just can't
I am using .Net3.5. Just wondering my understanding about the insert, update, delete are

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.