If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Problem with php/mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-09, 11:41
rcbandit rcbandit is offline
Registered User
 
Join Date: Dec 2009
Posts: 1
Problem with php/mysql

Hi,
I have a problem with php/mysql. When I insert a new rows into mysql table php inserts the new table into the end of the table.
The strange thing is that then I reinstall the database again this time php inserts the new table at the beginning of the table. It seems that the mysql servers chooses the order of the inserting new row into table at the installation. How I can tell mysql allays to insert the new row at the beginning of the table.

And something important - External script is reading the rows of the table, I can't edit it.
Reply With Quote
  #2 (permalink)  
Old 12-02-09, 12:04
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
There is no guaranteed order of data in tables. If this is important then perhaps you should have an automatically incrementing field in the table and use this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On