I have a linksite. We publish links to our members.
I want to add a favorites feature for members.
There will be a "Add to favorites" link on every link.
When member click to that link it will be added member's favorites link list.
And there will be a favorites page to edit favorites like deleting a link from favorites.
I have php experience on beginner level.
Is this possible without a database integration?
Maybe favorite links can be held in a membername.txt file and that file can be edited for adding and deleting links.
How can I do that ?
Do you suggest another way to do that easily?
Favorites list for site members
Moderator: General Moderators
I wouldn't think of using a flat file in this case, or any really. Getting started using Mysql is the best way to go. Here are some good online tutorials to get you going.
http://www.webmasterbase.com/article/5 ... ial4.html
http://www.webmasterbase.com/article/5 ... ial4.html
Another option if you are running Windows, is to download the phpdev package. It installs Apache, PHP engine, and MySql on Win OS. You can also download PHPAdmin there too I think. This gives you a web based/gui interface to MySql.McGruff wrote:Forgot to say: tripod.co.uk give free accounts with php/mysql if you want to try it out.
http://www.firepages.com.au/dev4.htm
Installation is a breeze and is a good option for developing/testing on your local machine. Of course Linux comes with these things too and you won't have to boot your machine every other day.
I already use php and mysql backend on my site.
http://www.limk.com
I didnt write the code and I need some improvements like favorites etc.
I use a favorites JS with cookie system.
I hope I could find a solution with database.
http://www.limk.com
I didnt write the code and I need some improvements like favorites etc.
I use a favorites JS with cookie system.
I hope I could find a solution with database.