close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Sessions and recordset

Thread began 8/01/2010 3:29 am by victor405909 | Last modified 8/26/2010 10:22 pm by victor405909 | 437033 views | 15 replies


That is excellent I am gonna try this out.

One thing I wanted to know.

How is a session variable generated by user and how do I get ProductID in the session you described.

Say the user clicks a link with a URL parameter from a page:

e.g. <a href="cat.php?ProductCategoryID=1">Dress</a>

This leads to a category page that displays all products with that specific ProductCategoryID. Which would be all dresses in this instance.

On this category page "cat.php" user clicks a individual item image which takes them to details page "proDETAIL.PHP"

e.g <a href="prodDETAIL.php?recordID=<?php echo $row_rsvlProducts['ProductID'];?>"><img src="/images/large/<?php echo $row_rsvlProducts['ProductImage']; ?>" alt="image" /></a>

On the details page there is a recordset "rsItemDetail" which filters ProductID to match URL Parameter "recordID" and just displays info for single item as desired.

Now I need to some how store the ProductIDs viewed by user on details page "proDETAIL.PHP" IN THE SESSION CODE YOU PROVIDED

Do I do this by typing "recordID" to replace session name

e.g. $_SESSION["recordID"]

I also need to retain ProductIDs generated which appears to done generated by previous code seen above

e.g <?php echo $row_rsvlProducts['ProductID'];?>

I am unsure of how to acheive.

Please could you clarify for me.

Thank you very much by the way!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...