Jump to content

User bookmarking code


leeandrew

Recommended Posts

Hi,

 

I already have a system which allows users to bookmark 10 pages on my site; refered to as their top 10. I want to be able to have an unlimited bookmark system also where users can add 'favourites' besides their top 10.

In my top 10 system each page goes into an individual cell... top1, top2, top3 etc...

Is it possible to lump all favourites into 1 cell?

 

Is there a better way to do this... rather than having 200 different available cells for each favourited page.

Link to comment
https://forums.phpfreaks.com/topic/96220-user-bookmarking-code/
Share on other sites

You could do this in several different ways. The simplest would be to create a cell of type "TEXT" (i am assuming that my cell you mean in MYSQL) and appending the page name or id in a comma separated list. Then just use split(",", $string) to ouput tem into an array when you build your list of bookmarks.

Link to comment
https://forums.phpfreaks.com/topic/96220-user-bookmarking-code/#findComment-492579
Share on other sites

Yes its sql. I have created a TEXT cell called BOOKMARKS. I dont know what to do next. i know i will need to do 2 further things; place something on each page i want available for bookmarking, and a page in the user section that displays each users list.

 

Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/96220-user-bookmarking-code/#findComment-492676
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.