Page 1 of 1

How to Query from html output link

Posted: Sun Sep 23, 2007 10:50 pm
by rfigley
Query selects records, and one of the rows displayed is as follows.

Code: Select all

echo "<td>" . "&nbsp" . $row['id'] ."&nbsp" . "</td>"
I want to provide a link such as:

echo "<td>" . " " . "<a href=\"query-for-all-rows page.php\">" . "&nbsp" . "Full Record Info" . "&nbsp" . "</a>" . " " . "</td>";

utilizing the "$row['id']" data as the query critera, but not sure of the proper syntax?

Re: How to Query from html output link

Posted: Sun Sep 23, 2007 11:29 pm
by Zoxive
Huh?

Your question is very vague.

My Best Guess...

Code: Select all

echo '<td>' . '<a href="query.php?rowid=' . $row['id'] . '">' . $row['id'] . '</a></td>';
//
//Now in query.php you can use $_GET['rowid'] to select all the data from that row
//

Posted: Mon Sep 24, 2007 12:00 am
by John Cartwright
Moved to PHP-Code.

Posted: Mon Sep 24, 2007 3:40 am
by s.dot
Jcart wrote:Moved to PHP-Code.
Now it is. ;)