close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

php help

Thread began 6/03/2010 1:10 pm by akstudio | Last modified 6/09/2010 2:55 pm by Jimmy Wu | 960 views | 5 replies |

akstudio

php help

I hope someone can help.

I have this piece of code:

$sbm = new SimpleBM($_SESSION['UserID'],1);


My question is.... how would I "echo" the $_SESSION['UserID'] part in the above?

Thanks.

Sign in to reply to this post

Jimmy Wu

This should echo that part out:

echo($_SESSION['UserID']?$_SESSION['UserID']:"Not set");

You would just put it above or below the other call and it should display the UserID if it is set and Not set if it isn't.

Sign in to reply to this post

akstudio

Thanks, that seems to have gotten me a few steps forward. However, I had to set this project aside as Ive run into too many issues.

I guess I'll ask, since I am here... hope it doesn't get too hidden... I'm looking to create a bookmark system. It works like this:

1. User logs in
2. browses through a ton of videos...
3. while browsing, they can "bookmark" the video for later viewing.
4. when the user returns at a later date, they can visit their profile page to view all of their bookmarks.

Bookmarks need to be stored as:

page title
time of bookmark
link to the page with the video

I found this: 79865

However, I just cannot get it to work with WebAssist tools, with all the authentication and such.

Do you think it is possible to build such a system with the webassist tools only? Ive tried, and have run into a few snags... seems like it would require a bit more scripting than the tools offer, as I need to grab the URL, allow for removal of bookmarks, etc.

Thanks for any advice.

Sign in to reply to this post

Jimmy Wu

well, if the videos each have a specific id or identifier, you could link to the videos using that identifier. The add bookmark would add an entry to the database with the userID and the videoID and when the user logs in you would have a repeat region that loops on the results returned from the search. If the videos are stored in the same location, the links to the videos shouldn't be hard to be created from the videoID.

Sign in to reply to this post

akstudio

Thanks, I now have this working

Sign in to reply to this post

Jimmy Wu

Great to hear it. If you run into any additional issues, feel free to open a new thread.

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