Re: How to build a dinamic link...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux