output query in already existing html table
Posted: Tue Dec 20, 2005 1:51 am
Hi all
I'm relatively new to PHP and Mysql.
The problem for what I can't find the solution is the following:
I would like to make appear the 5 latest records of a "news" tabel (only 2 coloms: date and description) in 5 cells in an existing html tabel on a homepage written in html. So "date" and "description goes in the same cell. Is this possible with PHP???
I know how to make appear this query with the 5 latest records in a new tabel generated by PHP with a loop. But the question is: is there a way to make appear the dynamic data in an already existing html table because I don't want to rewrite the homepage with a lot of nested and formatted tables in PHP.
Any help is welcome!
Greetzzz
Kurt
I'm relatively new to PHP and Mysql.
The problem for what I can't find the solution is the following:
I would like to make appear the 5 latest records of a "news" tabel (only 2 coloms: date and description) in 5 cells in an existing html tabel on a homepage written in html. So "date" and "description goes in the same cell. Is this possible with PHP???
I know how to make appear this query with the 5 latest records in a new tabel generated by PHP with a loop. But the question is: is there a way to make appear the dynamic data in an already existing html table because I don't want to rewrite the homepage with a lot of nested and formatted tables in PHP.
Any help is welcome!
Greetzzz
Kurt