woodplease Posted December 3, 2009 Share Posted December 3, 2009 Hi. i've read the contents of a database to a table, and within that table, for each record, i've created a link to another page to display more information. my problem is that i'm not sure what code needs to go on the other page, to display this extra information. the extra information is from the same table. I know the code would need to read from the url, but thats about it. my code from the original table is echo "<TD>".$row['refnumber']."</TD> <td><a href='description.php?id={$row[refnumber]}'>".stripslashes($row[title])."</a></td> <TD>".$row['platform']."</TD> <TD>".$row['price']."</TD> \n"; echo "</TR>\n"; When i click the link, i get the following url /description.php?id=8 Any help would be great Thanks Link to comment https://forums.phpfreaks.com/topic/183861-display-a-table-entry-on-a-page-linked-from-table/ Share on other sites More sharing options...
rajivgonsalves Posted December 3, 2009 Share Posted December 3, 2009 the code would be similiar to the first page except that the query would have a where clause where `refnumber` = $_GET['id'] please note this is only pseudocode Link to comment https://forums.phpfreaks.com/topic/183861-display-a-table-entry-on-a-page-linked-from-table/#findComment-970576 Share on other sites More sharing options...
woodplease Posted December 3, 2009 Author Share Posted December 3, 2009 i thought it would be something like that, except whatever i try, doesnt seem to work Link to comment https://forums.phpfreaks.com/topic/183861-display-a-table-entry-on-a-page-linked-from-table/#findComment-970596 Share on other sites More sharing options...
rajivgonsalves Posted December 3, 2009 Share Posted December 3, 2009 if you could show us the code your trying and what error your getting we could help, its too hard to tell what your trying to do if we do not see the code Link to comment https://forums.phpfreaks.com/topic/183861-display-a-table-entry-on-a-page-linked-from-table/#findComment-970873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.