close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Log In

Thread began 9/12/2012 1:17 pm by Php | Last modified 9/12/2012 5:01 pm by Jason Byrnes | 482 views | 3 replies |

Php

Log In

Hi,

If I have a photography website and I place the clients photos on the internet, I want only the client whos photos their are to be able to view them, not anyone else. How would I be able to do that. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to create a table to store the file names of the photographs, and the ID of the user they relate to:


photgraphs:
photgraphID - primary key
photographUserID - relates to users.userID
photgraphImageName - stores the file name "123.jpg" for example


when a user logs in, their ID is stored in a session variable.

Use a recordset to query the photgraphs table and filter the photographUserID on the session variable that is set by login.

use this recordset to populate the page with images.

Sign in to reply to this post

Php

So the photographs page would only be accessible when logged in and would be queried by the user ID.

2. Also if I have a page with lots of photos but only want that to be accessible by logged in customers and new users how would I do that with security assist. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you would use security assist to restrict access to allow only logged in users , and query by the logged in users ID

  2. Also if I have a page with lots of photos but only want that to be accessible by logged in customers and new users  



i'm not sure i follow. A registered user is a registered user regardless of the registration being new or old.

using security assist access restrictions, you can restrict access to the page to only allow registered users to see it.

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