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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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