I have written a small piece of code to grab information from mysql database
the query I'm using:
SELECT id, title FROM mydb ORDER BY id DESC limi 0,4;
this code works perfectly on my local webserver but when I upload it to a public server it works but the id associated with all the results is the same and is equal to some wiered number like 201454672 which is wrong.
I checked the database everything there is okay, the data in place and their ids are true only select produces the wrong ID, everything else is okay
what the heck could cause this problem ?
show create table mydb? Did you check if there are any triggers defined on this table?