View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Recordets and Regions

Thread began 8/03/2009 6:44 pm by Paul | Last modified 8/05/2009 5:44 pm by Paul | 926 views | 3 replies

PaulBeta Tester

Recordets and Regions

Eric,

A little background.
My users table includes a ProfileUpdate field where the value is set according to the user when they login and visit the profile update page.
There are 2 option 0 (Off) and 1 (On)

When the user has updated their profile they are redirected to the index.php page where a recordset is run to determine the current value of the ProfileUpdate field.

It'll either be '1' or '0'.

Now, in my show region #1, i'm validating the recordset value <?php echo $row_rsUserProfile['UserProfileUpdate']; ?>=1 to allow the show region #1
and <?php echo $row_rsUserProfile['UserProfileUpdate']; ?>=0 to allow the show region #2

I figure in theory this should work, but neither region shows despite the recordset returning the values 1 or 0 on the index.php page ok.

The reason i'm using a recordset and not a session for the same value, is that if the user updates the ProfileUpdate in their profile, the session will be holding an old value. Whereas the recordset returns the up-to-date value from the table.

Are you saying that the rule cannot work with a recordeset value on the same page?

Incidentally, the script snip in your post returned all the session values expected when placed in my index.php page.

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