PDA

View Full Version : Problem in fetching rows from mysql in php?


JackyRock
01-23-2010, 07:36 AM
Hi Friends, I tried:
I inserted a row in mysql using php in the first webpage and second webpage i tried to retrieve it.
I got:
But in the next page i did not get the lastely inserted row.
When inserted the another row, i was able to get the first inserted row and not the lastest row.

So every time i miss the last inserted row the first time and when then i was able to get it as soon as i insert another row.

How to solve this issue? Is it something related to commit i am missing here?






External Hard Drive (http://www.bipra.com/cat-698-externalharddrives.aspx) ||Portable Hard Drive (http://www.bipra.com/cat-801-internalharddrives.aspx) ||USB Hard Drive (http://www.bipra.com/cat-698-externalharddrives.aspx)

AndrewRailman
01-26-2010, 09:47 PM
Please paste here the structure of the table and I will give you the exact php code to get the last row.