SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict hurricanedan's Avatar
    Join Date
    Feb 2006
    Location
    North Carolina
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP address book

    Does anyone have a recommedation on a php based address book. Preferably one that I can list all users on the left hand side and once a user is selected their info is listed on the right of the screen.

    Thanks,

    Dan

  2. #2
    SitePoint Evangelist Waffles's Avatar
    Join Date
    Nov 2005
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code your own, it wouldn't be too hard.

    Table with fields...

    ID
    Name
    Phone Number
    Email
    Address

    Do a query to select all of the users...with links like:

    addressbook.php?user=$r['user']

    then..

    PHP Code:
    <?

    if(isset($_GET['user'])) {

    $sql mysql_query("SELECT * FROM add_book WHERE username = '".$_GET['user']."'");

    // show user info

    } else {

    echo 
    'Choose a user to view their information';

    }
    ?>
    a form would be simple enough to code for addin data.


    edit ~ 100 posts

  3. #3
    SitePoint Zealot erikwebb's Avatar
    Join Date
    Dec 2003
    Location
    Atlanta, GA
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

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