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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.