Jump to content

Recommended Posts

I have a rather simple dynamic table which displays information from a certain column from a database. The code is as follows:

 

<table border="1">

  <tr>

    <td>Name</td>

  </tr>

  <?php do { ?>

    <tr>

      <td><?php echo $row_Recordset1['Name']; ?></td>

    </tr>

    <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>

</table>

 

However, how do I do so I can click on each row of data that is displayed (so it redirect to another page) and create a session variable with the same value as the data in a particular row displayed? For example, if the Recordset retrieve and display the value "james, when clicked I want to create a session variable named "james".

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.