I have a mysql table with around 20 columns, what I am trying to do is retrieve values from database and send those values to a Web page.
So, by usingmysql_fetch_array()
I can get the first value entered in the database and by using while(mysql_fetch_array())
, I am able to retrieve all the values in the database table, and by using fwrite()
, i can even send the values to a file.
But the problem is if i use while(mysql_fetch_array())
, all the values are getting retrieved; I only want the current(latest) value entered in the database to be sent to another page. How do I do this?