Forums
This topic is locked
Create Session variables in dynamic tables
Posted 09 Aug 2007 11:42:14
1
has voted
09 Aug 2007 11:42:14 Joel Tonnberg posted:
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".