Results 1 to 5 of 5

Thread: Note pad script anywhere???

  1. #1
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Note pad script anywhere???

    Hello I'm quite new to support forums so my apologies if this isn't the right place to post .

    I'm looking for like a little note pad kind of thing to put on my site, where i can type in the name of my member and put a few notes in about them and then save it, it needs to be private and have a login screen so others can't access it.

    It don't have to connect to my database i will just manually put in the members as i go along, only need it if i need to keep tabs on certain members.

    So it will need fields as follows

    Username:
    Email:
    Ip Address:
    Note:

    I have tried to locate one but having no success.

    Thanks

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    256
    Thanks
    1
    Thanked 21 Times in 21 Posts

    Default

    Well if you already have a database for members then it would be the most intelligent thing to store the notes in the db in the same table or another table and put the members id in a column to keep track of which notes go to who. Then you would just use a normal form and textareas for the notes and a select box of member names populated from the members list and insert that in to the db.

    Otherwise you could write the info to a txt file and label the files the names of the members or their user id, but this just seems like more work and the db will be slightly more secure.

  3. #3
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks but i have no idea how to store the notes in the members database.

    I'll have to go with the .txt files...

  4. #4
    Join Date
    Feb 2008
    Posts
    81
    Thanks
    8
    Thanked 5 Times in 5 Posts

    Default

    Well, there a number of setbacks if you use a text file to store notes:

    -> People can open your text file via your server and hence, it would make your login feature useless
    ->Also, keeping one part of your data separate from the rest, makes it difficult to manage it it later. (You will need to maintain 2 different aspects in your script to update/handle each)

    That's why, it's highly suggested you stick to your database, even for the notes.

    It's not very difficult to add and update a column to you database.
    You will just need to execute a SQL query similar to this (say your table's name is 'memberdata' :

    Code:
    ALTER TABLE memberdata
    ADD notes VARCHAR
    Then to add data to the column:

    Code:
    INSERT into memberdata (notes)
    values ("A very naughty employee");

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I would recommend creating another, separate table for this purpose (especially if your member database was designed by someone else -e.g., if it's part of a CMS- since changing its structure would affect -maybe break- other scripts that access it).

    the new table could be as simple as this:
    Code:
    +--memberid--+------notes------+
    |            |                 |
    +------------+-----------------+
    If you use the existing member id from your members table, then the notes are still associated with the right member.

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
  •