close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Setting $_SESSION Variables

Thread began 6/08/2009 3:29 pm by Kevin373660 | Last modified 6/08/2009 4:46 pm by Kevin373660 | 2320 views | 2 replies |

Kevin373660

Setting $_SESSION Variables

I have the $_SESSION['kidID'] set but I am not sure how to write the code to put the"value" of into or = to the $row_WADAtbl_members['kidID']. I only know how to set a session variable as a fixed integer or 'string.' Like after the session is started with $_SESSION['kidID'] = 1. I can also echo both on the page to confirm their values. In this case both are integers. I get totally lost with php.manual. Please can someone help me out? It would be a greatly appreciated. Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

You can set a session variable from a recordset row like:
$_SESSION['kidID'] = $row_WADAtbl_members['kidID'];

You can use it to insert into the database with DataAssist, or you can use it in your SQL parameters to filter results.

You can certainly echo both to the page to confirm their values as well, but remember you need session_start() somewhere above where you first start using session variables on the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kevin373660

Thank you Ray! It is great to know the proper syntax. Your help is always appreciated.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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