PHP insert in random order??
Hi guys,
I got a question about php inserting data into mysql DB. I don't understand the reason why everytime when I add some record to my mysql db table, sometimes it add it to the beginning of the table and sometimes it adds it to the end of table. I have already set the primary key and auto_increment to a table field "id". When php inserts the data into mysql, the row with id field 15 sometimes goes before the row with id field 14 (and sometimes vice versa). How can I fix this problem? Is there another way to go around with this? This is very important to me as I want to add latest news to my site, but this is just not working.
Thanks,