First. I have two pages, index.php and articles.php.
(Of course, and a MySQL database with some articles in it. Tables are : art_id, art_name, art_img, art_txt).
Now, both pages have a simple table on it, with two tables/cells - page articles.php should have a table/cell (named: result) and a table/cell (named: links)
In this cell "links" I have an ordered list of hyperlinks echoed from MySQL database
Code: Select all
echo "<a href=\"articles.php?id=$row[art_id]\">".$row["art_name"]."</a><br/>";But I want - when I click on every individual link there that an article with appropriate ID opens in "result" table with image, name, and txt attributes listed.
So, my question is - how do I make a query (php code) to get their links open in the (same or some other) page - only in the location table that I call "result"?
Please, help me, what would be appropriate php code for this?
Thank you!!!