gb75 Posted March 25, 2009 Share Posted March 25, 2009 Is there a way to parse multiple variable without have loads of lines of code. The code is doing a basic select from a mysql table, then populating a table with the result of the SELECT. Each row that is retrieved will then have a link to see the entry in more detail. The code echo '<td align="center"><a href="updatetest3.php?id=' . $row['genid'] . '&tor=' . $row['TypeOfRequest'] . '&req=' . $row['RequestorName'] . '" class="button">Browse</a></td> <td align="center">' . $row['genid'] . '</td> <td align="center">' . $row['RequestorName'] . '</td> <td align="center">' . $row['DateOfRequest'] . '</td> <td align="center">' . $row['TypeOfRequest'] . '</td> <td align="center">' . $row['Country'] . '</td> <td align="center">' . $row['LedgerCode'] . '</td> What I dont really want to do is have a lots of & statements for each column in the table as the coding will just be too big. Link to comment https://forums.phpfreaks.com/topic/151054-passing-mulitple-variables-to-another-page/ Share on other sites More sharing options...
kenrbnsn Posted March 25, 2009 Share Posted March 25, 2009 If you have an unique key that identifies the row in the database, you only have to pass that in the URL. Ken Link to comment https://forums.phpfreaks.com/topic/151054-passing-mulitple-variables-to-another-page/#findComment-793547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.