Results 1 to 3 of 3
Mar 31, 2009, 09:47 #1
How to click on the "Title" and view more details ?
My table displays the date, company, country and title fields.
Example Date Company Country Title April 25 Joel Osteen United States Historic Night of HopePHP Code:
echo "<table border='0'>
//run the while loop that grabs all the announcement
while($row = mysql_fetch_array($result))
echo "<td>" .date("F d",strtotime($row['startdate'])). "</td>";
echo "<td>" . $row['company1'] . "</td>";
echo "<td>" . $row['D1'] . "</td>";
echo "<td>" . $row['title1'] . "</td>";
Problem: All in just normal text
Question 1: How to I make the "title" clickable into a new window that only displays that row ?
Information: I think its something to do with <a href..> , my row has a primary key called "id".
Problem 2: After it has display that row in a nice new window, I would like to allow my users who has logged in with SESSIONS to be able to leave comments.
Question 2: How to I code that ?
Thanks once again Lovely Sitepoint people for every help, advice and assistance given!
Mar 31, 2009, 11:06 #2
- Join Date
- Jul 2008
- 0 Post(s)
- 0 Thread(s)
echo '<td><a href="comment.php?id=' . $row['id'] . '">' . $row['title1'] . "</a></td>";
Mar 31, 2009, 20:42 #3
thanks so much crmalibu,
It was a success with your codes.