Re: [PHP-DB] getting last entry in database table

2001-03-17 Thread Martin Skjöldebrand
David Balatero wrote: > Do this: > > $querykb = "SELECT e_description FROM events WHERE t_id = '$t_id' ORDER BY > id desc"; > > where id is the unique id of each row. > Then it will order it like: > > Entry 2 > Entry 1 Yes, possibly. But it still doesn't add the last entry to the variable lik

Re: [PHP-DB] getting last entry in database table

2001-03-17 Thread David Balatero
Do this: $querykb = "SELECT e_description FROM events WHERE t_id = '$t_id' ORDER BY id desc"; where id is the unique id of each row. Then it will order it like: Entry 2 Entry 1 David Balatero Martin Skjöldebrand wrote: > Martin Skjöldebrand wrote: > > > I have a table containing st

Re: [PHP-DB] getting last entry in database table

2001-03-17 Thread Martin Skjöldebrand
Martin Skjöldebrand wrote: > I have a table containing steps toward solving a problem. I want to pass > the last entry to another database as a solution. > How do I do this? What I've tried today is: I read a few more pages in my newbie book and decided to try it like this instead: http://ww