Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2007, 04:59 AM
Registered User
 
Join Date: Mar 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic session variable in while loop

Hello Friends
I am fetching the records from database by using while($data=mysql_fetch_array($sqlresult)).Suppose I got 3 rows and I take the records as session variable.There is a hyperlink in each record.If I click the first link the page goes to another page and display the details according to that particular session variable for first link.When I come back to link page(previous page),then the previous session should be destroy n again when i click on the second link,then details should be display according to second session variable and so on...
Please tell me how to do this.

Thanx.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I take variable value in for loop Swetha XSLT 3 May 1st, 2008 06:17 AM
XSL Loop and incrementing a variable 2007-03-29 XSLT 8 March 30th, 2007 10:41 AM
ASP dynamic SQL query with for loop? hman Classic ASP Databases 3 December 13th, 2006 08:56 PM
To iterate the FOR loop variable garg.ashish15 Oracle 0 November 10th, 2006 09:31 AM
Session Variable youyou_hym Dreamweaver (all versions) 4 January 20th, 2005 11:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.