close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Show Records If

Thread began 9/16/2009 2:05 pm by info271221 | Last modified 9/17/2009 3:15 pm by info271221 | 3928 views | 10 replies

anonymous

Yes.. the way to do this is to first make sure you have a session variable created when you authenticate the user. There's always at least one (I am sure you have user_ID for example, although I am not sure of the naming convention). For the purpose of this instruction, let's say it us "user_ID" that gets set as a session variable when someone logs in.

Now, if your site doesn't have user levels and anyone - just as long as they are logged in - is allowed to see the full 25 rows, then you just need to check that the session variable exists.

So your code would look like this:

php:
if ($_SESSION['user_ID']) {

$maxRows_WADA<YOUR_RECORDSET_NAME> = 25; 

} else {

$maxRows_WADA<YOUR_RECORDSET_NAME> = 5; 

}



No you have created an if statement that will check for the session variable of user_ID which can only be set when someone logs in and then will display 25 records. If the variable is not set, it will only show 5.

Cheers,

Brian

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