Jump to content

Passing mulitple variables to another page


gb75

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.