Mysql problem

admin

Administrator
Staff member
i have created following Key in my Msql db:

Keyname Unique Field Action
----------------------------
PRIMARY Yes msg_id Drop

As you see it gives every row a 'id'. The default value is 0. When i look at the db with mysqladmin he shows the ids correctly. But if i get the msg_id with a php script he gives me values like this one:

1002386415 or
1002384900

I have no idea why, because in the db everything is displayed correct. Do i have to change the sql query when i want to get information from a Primary Key table or what could be the problem ?

thanks in advance


al
 
Back
Top