Re: How to build a dinamic link...

From: Date: Wed, 29 Dec 2004 11:26:30 +0000
Subject: Re: How to build a dinamic link...
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-37916@lists.php.net to get a copy of this message
Hi Frank: Thank´s for answering. >I assume you can run the query and display the results Yes, I can run the query very well. >- so the only exotic thing here is: > >while ($row = mysql_fetch_array($result)) >{ >print "<tr><td><A HREF='detail.php?id=" . $row["id"] . >"'>" . $row["title"] . "</A></td><tr>"; >} > >This will produce a list of titles (in table rows) that are linked to a page called >"detail.php" and each title will 'GET' on this >page the id of that record >with that title. So make a page called "detail.php" that will display the body of an >article given it's >ID. In that page I assume that there is another query to SELECT body FROM a given table WHERE ID='$ID'; Isn't that so? Regards... Daniel...

« previous php.db (#37916) next »