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
https://forums.phpfreaks.com/topic/45792-displaying-title-as-a-link/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.