linking photo tagging script to database

Posted on 2008-11-15
Last Modified: 2012-05-05
I am using the image tagging script available at

it stores the image tagging data in a xml file. I have successfully implemented the image tagging functionility. But I want to link it to my database so that it works like orkut or facebook. ie, when I tag an image, I want that when a user clicks on that tag, he should be taken to that users profile.

I'm not sure if I have explained it properly. But if you look at orkut image tagging, you will understand what I mean.


a user uploads a snap that has two friends. (both the friends are users of my website: user A and User B). I tag my friends in that image with their names, ie User A and User B. Currently, when any user moves his mouse pointer over that image, it displays their names properly. But what I want is, if any user clicks on the User A tag, he should be taken to his profile page on my website.

Please guide. Also please let me know if you need any further details.
Question by:technortus
    1 Comment
    LVL 10

    Accepted Solution

    on the image place an onclick='document.location=\"linktoprofile\"'

    based on your site structure your links will be dependant on some variable that you can link to eg

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now