how do i get the last row from a database??
if you have a numerical index column you can do.
SELECT * FROM tablename ORDER BY id DESC LIMIT 1
hmm ok tks. i give a shot..But i would still prefer to do without the index
A relationship database don't have the rows ordered, so there is no way to tell what row was the last one. That's why you need to order by and limit to get the last row.