Jump to content

Displaying Title as a link


savio_mf

Recommended Posts

HI everybody, hoping you all can help.

I'm developing a simple CMS which displays the names of pictures on a page.

(ex: Picture 1 - This is picture 1

      Picture 2 - This is picture 2.

)

The pictures are uploaded to the database using a form.

 

If someone clicks the above titles, the user should be directed to a page containing the picture (ex: www.example.com/picture1.

 

I am wondering how I go about this, and how to make susck titles appear as links. Sorry I sound very naiive, but I've only recently started with PHP(been 3 days)

 

Any help will be greatly appreciated.

 

Thanks

 

Link to comment
Share on other sites

oh i see,

 

make a new table in youre database, now on the upload page sotre the infromation, like the link (most important) now just give a link just echo all the links and you can return the urls

 

mysql_query("INSERT INTO table(`url`) VALUES('uploads/".$HTTP_POST_FILES[file name][file type]."')");

 

edit bold bits

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.