Recommendations/help with  'Add Contact List'

hello,
i've run into a bit of a problem, need some expert advice
before i lose my mind :)...
i am trying to allow registered users to have a friend list.
my problems:
1) user is viewing their friend list and only their friends
user_id shows up rather than their friends username...
Here is the SQL i have as of now:
SELECT userTable.user_id, userTable.username,
friendTable.user_id, friendTable.them_user_id
FROM userTable JOIN friendTable ON userTable.user_id =
friendTable.user_id
WHERE userTable.username = var1($_SESSION['MM_Username']
2) when users click 'add friend' button (which is an insert
form with 3 hidden fields, user_id, friend_id, MM_insertform), my
code doesn't check if they are already friends with that person...
not a huge deal, but i'd like to have this feature if i can...
i'd be thankful for any advice, help, etc... thank you!

> 1) user is viewing their friend list and only their
friends user_id =
shows up=20
> rather than their friends username...
> Here is the SQL i have as of now:
> SELECT userTable.user_id, userTable.username,
friendTable.user_id,=20
> friendTable.them_user_id
> FROM userTable JOIN friendTable ON userTable.user_id =3D
=
friendTable.user_id
> WHERE userTable.username =3D
var1($_SESSION['MM_Username']
what happens if you include friendTable.username in the SQL
statement?
>=20
> 2) when users click 'add friend' button (which is an
insert form with =
3 hidden=20
> fields, user_id, friend_id, MM_insertform), my code
doesn't check if =
they are=20
> already friends with that person... not a huge deal, but
i'd like to =
have this=20
> feature if i can...
There is a built in server behavior for Check Username that
will check =
for an existing user name. You might be able to modify that
to meet =
your needs. Keep in mind that modified code will work but
disappear =
from the Bindings/Server Behaviors panel.
--=20
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web =
Development

Similar Messages

  • Need Help with hijacked contact lists

    Hello all, I am new here, so please forgive me if I'm posting to the wrong board...didn't really see anything more appropriate. I have a problem with a hijacked contact list:
    I have three email accounts being forwarded to my BB Curve 8530.  Two from Yahoo and one from AOL.  In each of these accounts (when accessed directly from yahoo.com or aol.com) have different contacts.  Not all of these contacts are in my BB contact list.  The other day, one of my yahoo accounts was somehow hacked, and resulted in one of those spam "drugs for sale" emails being sent to people in my contact list.  Well, when I investigated, I discovered that actually, someone who is not even in that particular accounts contact list, but another account.  How is this possible?
    If that is confusing, here's a better summary (using fake email addresses):
    [email protected] sent a bogus email message to [email protected]
    but, [email protected] is not in [email protected]'s address book.  it is in [email protected]  [email protected] is not listed in my BB device's contact list.
    The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
    How was this able to happen?  what can I do to stop it?
    thanks!
    Lee

    This is the Welcome and Introductions section, so Greetings, and welcome!
    The 8500 model section would be perfect for your questions,so we'll get it move there.
    Meanwhile,
    leevalon wrote:
    The only thing I can think os is somehow the BB was hacked, and someone was able to go through all linked contact lists, and send an email across all connected accounts.
    Sorry, not possible... UNLESS you gave your BlackBerry to someone to use for a while, during which time they spammed all your contacts. Did you?
    Do you have a Security password set on the device? If you are afraid of the above happening, setting the password will just that impossible.
    But it wasn't hacked.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help with SPA9000 contact list

    Please help, I have been trying to confgure my SPA9000 to do something I thought would be easy....but so far it isn't.
    I have 2 sets of phones (941/942s)   extension 101,102,103,104 and another set 201,202,203,204
    when a call comes in I want to call the 1st range (all the 10? phones) , then after 20seconds, call the second range (all the 20? phones) and after 30 seconds cfwd to  voicemail
    I did have huntrgoups set up llike this
    600:name="All",100,101,102,103,105,109,hunt=al;30;1,cfwd=aa|500:name=Home,201,202,202,203,105,hunt=al;10;1,cfwd=600|
    Then I set the contact list to be 500 ( the first hunt group)
    .. but it doesnt work 
    does anybody know how this can be done ? 
    Many thanks 

    i'm not sure if it is possible to use cfwd to another hunt group ...also, i believe the delay that will be followed is the CFWD No Ans Delay under the Line in SPA9000 and not the delay in the Hunt Rule
    what if you simplify your hunt rule first by putting a single extension on the cfwd just to check if it will forward to an extension?  like 500:name=Home,201,202,202,203,105, cfwd=100 
    | isolate! isolate! isolate! |

  • Help with transferring contact list

    So here's my problem, I had a Pearl 8130, and broke the trackball on it so it is no longer functional.  I just received my Curve in the mail today, and I want to move all my contacts from my Pearl to my Curve.  Everytime I plugged my phone into my computer, I hit "backup."  So my question is, how do I get them off of my Pearl?  If they are stored to my computer, what is the file they are stored in?  I can't seem to find anything anywhere, and there are no contacts from my phone in Outlook.  Is there another way to get them off my Pearl that won't require me using my trackball (it is literally gone).  Any help would be appreciated.  Thanks!
    Solved!
    Go to Solution.

    You are very welcome!
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Contacts issues - send contacts to at&t phone book or sim card? and un able to unsync email contact list with phone contact list

    I have had several issues with my contacts on this phone. I cannot figure out how to send my contacts to the at&t phone book or to my sim card. The options/menu button in contacts is completely useless. It should give me the option on the sim card to transfer contacts form one list to another. I have already written on another forum about the contact list not letting me unsync one of my email contact lists and how I have 3 copies of all of my contacts because my email contacts are mixed in with my phone contacts.
    BB really needs to fix this issue with the contact list because it is beyond frustrating. I even downloaded the new BB software today and it still hasn't been fixed.

    OK...so this post is strictly about wanting to send your contacts to the SIM. That capability is one at a time only. And there's a reason for that.
    The BB Address Book is robust, allowing you to have one name with multiple phone numbers and addresses. The SIM phonebook, on the other hand, is much less capable...if, for instance, you have one contact with three phone numbers in your BB Address Book, the SIM phonebook would require three separate entries to contain the same data (with the obvious duplication of the name on three separate records).
    So, I must ask...why on earth do you want to send your contacts to your SIM? There are much better methods for moving your contacts from the BB to somewhere else...
    Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • I've just came on board from Andriod and need massive help with the Contacts application any one out there willing to help the 'noob'?

    I had the folks at the store port over all of my contacts from my old
    ratty Andriod phone to my new shiny iPhone.
    however all 200+ of my contacts sort of "shook" out,
    meaning say John Smith, on my old phone,
    had in my contacts the following:
    John Smith
    123 Main St. Anytown, Anystate USA
    555-826-4879 home
    555-799-4247 cell
    [email protected]
    johnsmith@facebook
    all nice and neat on my andriod but when it ported over
    all that information was just scattered all over my contacts sort of like:
    john smith, smith john
    john smith 123 main st. etc.
    johhn smith home 555 etc.
    john smith cell 555 etc.
    john smith johnsmith@ etc.
    etc.
    so for all those 200+ contacts in my phone, I've got a zillion of them now...
    so I'd like to get this all back in order before I and Siri explode.
    I know nothing, and I know even less about outlook and the sort.
    But I do know I am in Dire need of help with this... I figured that eveything else
    involving iphones and apple in general was supposed to be cake but it seems
    like this is the only thing that isn't cake at all... unless, I'm just a right idiot. (which is possible, hence spelling and grammatical issues).

    I believe I've tried to sync it with google, but it didn't seem to take
    muchless take my calender. it seems to favor my facebook calender
    more over my google calender, but Siri seems to be helping me re-write
    it...but that's not the game here, it's the contacts. I've tried to export
    the cvp (??) list and import it into my iTunes account. However, It only
    doubled my issue because it didn't over write my existing contacts.

  • Help with restoring contacts

    Woke up yesterday and was missing MANY phone numbers in my contact list (even my mom's!).  Checked google, and they are missing there too (names, addresses and email accounts are still there for most as far as I can tell).  Just went on to Backup Assistant and the missing numbers appear to be there   I have hit Sync, but only 9 numbers sync up.  I have selected all and tried syncing again, still only 9 showing updated.  Any suggestions?  I have checked the settings in the main menu of contacts and all selections are checked under phone, SIM and Google.  Please help!  I don't want to mess this up.

    It sounds like Backup Assistant is acting funny again.
    Since you say that the number appear to listed on the My Verizon Backup Assistant website, I would suggest that you export the contact out of Backup Assistant and import them into your Google account.
    Once you have loaded the contacts into Google, they should sync with the rest of your Google contacts onto your phone.
    Then you can stop using Backup Assistant altogether.
    Also for any new contacts from this point on, you will want to be sure that you save them as Google contacts.

  • Help with multiple contacts with multiple phone numbers

    I'm fairly new to the iPhone so thanks in advance for any help with this issue.
    I have contact list with records for a lot of people (300+), each with several phone numbers each, home, mobile & work, etc, .I can't seem to find a way to have the iPhone announce the name & number or name & type (home,mobile,work) of the caller from the contact list, my old cell phone could do that easily.
    At the moment what I've been doing as a work around for a few (important) people is to create a custom ringtone for that caller & that phone number.  Since it also seems there's no way to attach a different ringtones to each number in a single contact record I've had to create multiple contact records for each person, each with a different name/number combination such as "John Doe Work", "John Doe Home" or John Doe Mobile" then assign to it the custom ringtone I created for that name/number. 
    I need to this so that if I receive a call while I'm driving (or whatever) that I can't answer right then for some reason (often happens),  the ringtone I created for that name & number helpfully lets me know  who & where their calling from.  It's very important to know where someone is calling from, if someone's calling from home then I know I've got some time,  but if their calling from work then I need to get back to them quickly.
    This is a real pain!, having to make multiple contacts & ringtones for a every person with multiple numbers is a extraordinary waste of time.  My old cell phone could do this with no problem but there doesn't seem to be any way to do this with my new iphone.  Am I missing something here?  I am new to the iPhone so if there’s a solution to this that I’ve missed I'd very much appreciate the assistance.
    Thanks in advance.
    Al

    https://discussions.apple.com/message/18271382#18271382

  • Need help with my contacts and email - used to have ipod touch

    Hi all
    I had an ipod touch in the past that I used to sync through the laptop i'm on now. However, I sold that quite some time ago and just got a new iphone the other day. when I hooked it up to my laptop to set up, my old touch account came up. This normally wouldn't be a problem but now it's syncing all my OLD contacts (thousands of them) and old email accounts...some of which are not in my windows live mail anymore.
    How do I go about:
    1) getting rid of all these contacts that were just loaded onto the phone
    2) starting new to add only the contacts I have in my windows live contacts list?
    I've tried deauthorizing the computer but that didn't do anything other than delete old apps I had on the touch.
    Much appreciated!

    Were you provided an option to transfer the backup from your Touch to your iPhone that you accepted?
    Which supported application on your computer are you syncing contact info with?
    With Vista, this can be with Outlook 2003 or 2007, or with the address book used by Windows Mail with Vista - which is the name change for Outlook Express with Vista. The address book is called Windows Contacts I believe and the sync option for contact info is selected under the Info tab for your iPhone sync preferences.

  • Help! Same contact list, different phones

    We have 3 phones. Myself, my husband and my daughters. We just recently went from me and my husband having Iphone 4's to iphone 5s. When we had the 4's we shared contacts and the calendar. We run a business and it just made sense to have it accessible whether we were on the phone, mac or ipad. Then when we upgraded, we gave our daughter my old iphone 4. Immediately all **** broke loose. We now have some, but not all of our contacts. We also have some of our daughter's contacts. For example, I had my husband saved as ICE with some info in the contact itself, like DOB. This contact is GONE. On both of our phones, in the recent calls the contacts are saved like my daughter's contact list so it says "DAD" not ICE.
    I want to know how to make it so that either my daughter has her own contacts and my husband and I share (preferred)
    or
    One master contact list, but as we had it before we added her phone.
    Any help would be great!

    What's probably going on is that you are sharing the same iCloud account on all 3 phones, syncing Contacts with iCloud.  When you do this, the contacts on all three are merged, and the merged list appears on all three phones (and any other devices sharing the same iCloud account).  Then your daughter probably saw some of your husband's contacts on her phone and started deleting them.  When you share an iCloud account, any contact added or deleted is added or deleted from all devices sharing the account.
    To straighten this out, your daughter needs her own iCloud account with a separate Apple ID.  (Note: she can still share the same ID for purchasing from the iTunes and App stores without creating any problems.  The ID used for purchasing does not need to be the same as the ID used for other services such as iCloud.)  To do this, on her phone go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on the iPhone.  After everything is turned off, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The other devices still sharing the account will not be effected by this.)  Next, set up a new iCloud account on her phone using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    To untangle the merged data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the unwanted data (such as deleting your contacts from your daughter's new account, and vice versa).  These changes will be reflected on each device syncing with the account being changed.
    Another thing to watch out for is that you should also be using a separate Apple ID for iMessage and FaceTime.  If you don't you'll end up getting each other's text messages and FaceTime calls on your devices.  To change the ID for iMessage, go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID listed, sign out, then sign back in using a separate ID.  For FaceTime, do the same thing in Settings>FaceTime.

  • Help with iCloud contacts. Need to bring in only one particular group of contacts into an iPad 2.

    I have just updated an iPad 2 which belongs to my father but which has always synced with my Macbook. On my mac, I have set up a "group" of his own contacts, but since upgrading to iOS 5 it keeps pulling in my entire contacts list. I have tried turning off "Contacts' on the iPad's icloud menu, but it has removed all of my father's contacts and when I plug the device into the Macbook and try to sync the way I always had been, it won't let me just sync particular groups, I can only choose to sync "all" contacts. Does anyone know how to make the Macbook, itunes sync allow me to pick and choose what groups of contacts I want on this device?
    Any help appreciated.

    you can go back to sync with itunes 10.5 just like you did in iOS4 before.
    If you want to continue your use/sync of iCloud Email ( most users want their @me.com ) :
    On Mac Lion go  -> System Settings -> icloud , leave only the wanted sync options active, like Mail, turn off Adressbook sync plus all other unwanted items.
    Power on your iOS device, tap "Settings" -> icloud and set it up to match exactly the same items like for the Mac.
    Then on your next connection of the device to iTunes on Mac, you can select the various items that shall be managed using iTunes sync and not the cloud. Adressbook is under the "Info(rmation)" section.

  • Two iPhones using same iCloud account with separate contact lists?

    Our family has two iPhones and we each use different contact lists.  If we use the same Apple Id is there a way to separate the contact lists in iCloud or do we need separate account (i.e Apple Id's)?

    I have my iphone and ipad on Apple icloud services and it finds both units. I think you have to have different account names set up in order to use it. Do you have itunes? if so you can add the device from there. For instructions go to http://www.apple.com check under support, then forums to see if that has been posted.
    Good Luck

  • How do I stop a sync mucking about with my contacts list?

    I have repeatedly set up the same contacts list in my computer and phone.
    All are in the form: Marybeth @ M in the first name field - a habit from long ago!
    Either the computer or the phone keeps trying to create surnames or dredge them out of some old historical file - to my eternal frustration!
    To quote a highly regarded TV scientist of yesteryear - Why is this so?
    Better still - How do I stop it???
    I don't use or want surnames in my list and it seems I don't get to choose whether I'd like it as an optional field!
    Thanks for any suggestions that will save my ever-thinning hair!

    Go to Menu>OptionsSync Tab>disconnet it> Sign in with what account you want.......

  • Help with UL navigation list

    Hello all, I need some help with a left navigation menu I
    have created, you can see the code below:
    the problem I have is when I am putting a link to the UL it
    doesn't work ( probably because I have a background image in my
    CSS) i was wondering if I can do it with another way..
    css code
    .treemenu {
    margin : 0px 20px;
    padding : 10px;
    list-style : none;
    width : 200px;
    .treemenu ul {
    list-style : none;
    margin : 0px 5px;
    padding : 0px 5px;
    .treemenu li {
    display : inline;
    .treemenu a {
    display : block;
    padding-left : 0px;
    text-decoration : none;
    .treemenu .treeopen {
    background-image : url('../img/open.gif');
    background-repeat : no-repeat;
    background-position : left;
    .treemenu .treeclosed {
    background-image : url('../img/closed.gif');
    background-repeat : no-repeat;
    background-position : left;
    UL

    Hello all, I need some help with a left navigation menu I
    have created, you can see the code below:
    the problem I have is when I am putting a link to the UL it
    doesn't work ( probably because I have a background image in my
    CSS) i was wondering if I can do it with another way..
    css code
    .treemenu {
    margin : 0px 20px;
    padding : 10px;
    list-style : none;
    width : 200px;
    .treemenu ul {
    list-style : none;
    margin : 0px 5px;
    padding : 0px 5px;
    .treemenu li {
    display : inline;
    .treemenu a {
    display : block;
    padding-left : 0px;
    text-decoration : none;
    .treemenu .treeopen {
    background-image : url('../img/open.gif');
    background-repeat : no-repeat;
    background-position : left;
    .treemenu .treeclosed {
    background-image : url('../img/closed.gif');
    background-repeat : no-repeat;
    background-position : left;
    UL

Maybe you are looking for