Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: my favorites / shortlist with php mysql

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    5

    my favorites / shortlist with php mysql

    hi, i'm trying to create a section similar to a shopping cart but to use it as a 'my favorties' page. ie. for a holiday rental site where you can add your favorite houses to a short list.. here is a perfect example www.holidayhouses.co.nz (see short list section) of what i'm trying to do in php / mysql...the data base is all set..just need to activate this part with an add to favorites button which essentially stores the rental advert in the cart / favorites / short list page...any help would be great..cheers

  2. #2
    Senior Member arvana's Avatar
    Join Date
    Jul 2003
    Posts
    152
    Are your users logged in to an account when they store their favorites? If so, just store their faves in a table against their username. Then the favorites page can query that table and display the relevant houses.

    If you want to let anybody store favorites without having to create an account first, then you'll likely have to do it with cookies instead.

    Or maybe you could do a combination of both, so if an anonymous user with favorites stored in a cookie then creates an account, their info gets stored in the table for anywhere access.

    Does that help?

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    5
    thanks for the reply, the users will not be logged on, i'm trying to do it as simple as possible by just using sessions, once the session is ended all information will be deleted, as i'm a novice i am trying to adapt a simple shopping cart to do the job

    am currently trying using this tutorial as a guide

    http://www.thewatchmakerproject.com/...-shopping-cart

    if you know of any better ones please could you post the link.... thanks v much

  4. #4
    Senior Member arvana's Avatar
    Join Date
    Jul 2003
    Posts
    152
    There's this one:

    http://www.zend.com/zend/spotlight/sessionauth7may.php

    and I also recommend:

    http://www.paulspages.co.uk/pcp/cookielib/

    For the best user experience, it would probably be best if their favorites were saved until next time, and it's quite easy to do, especially if you use the paulspages libraries.

    Good luck!

  5. #5
    Junior Member
    Join Date
    May 2006
    Posts
    5
    thanks for the help...will give them both a try..cheers

Similar Threads

  1. Showing Logo in favorites
    By Furlongs in forum Graphics & Design Discussion Forum
    Replies: 11
    Last Post: 01-19-2007, 12:57 PM
  2. online favorites sites
    By SerCrap in forum Other Engines/Directories
    Replies: 3
    Last Post: 04-12-2006, 10:26 PM
  3. Findory Adds Favorites
    By WPW_Feedbot in forum Search Engine Optimization Forum
    Replies: 0
    Last Post: 02-14-2005, 03:00 PM
  4. Favicon placed on Favorites Menu
    By level in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 11-12-2004, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •