I have a CMS that my freind built and I need to adjust one thing but I don’t know how so please help me …
this is my question :
I have an image in my home page , and I want the user to be able to click on this image and navigate to some website
now this website’s link will be provided by the user in the CMS
I have added a textbox so that the user can write the link , and saved the link in mySQL database , but I don’t know how to connect my image to this link I have ?!
Please help me
Sorry but this sounds bad idea.
There is nothing safe to let users be able to add a link.
But, to answer your question.
So, you have something like this in your user table?
then you can create a query to mySQL:
and then add a photo
But I would have taken a look at: http://www.webcheatsheet.com/php/create_thumbnail_images.php
It may be that I misunderstood you here. If so, I apologize:)