How to Query from html output link

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rfigley
Forum Commoner
Posts: 70
Joined: Sun Apr 21, 2002 7:10 pm

How to Query from html output link

Post 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?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: How to Query from html output link

Post 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
//
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to PHP-Code.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Jcart wrote:Moved to PHP-Code.
Now it is. ;)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply