savio_mf Posted April 5, 2007 Share Posted April 5, 2007 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 More sharing options...
boo_lolly Posted April 5, 2007 Share Posted April 5, 2007 google: mod_rewrite Link to comment https://forums.phpfreaks.com/topic/45792-displaying-title-as-a-link/#findComment-222442 Share on other sites More sharing options...
only one Posted April 5, 2007 Share Posted April 5, 2007 does it have to be /picture1 or can it be picture.php?id=1... Link to comment https://forums.phpfreaks.com/topic/45792-displaying-title-as-a-link/#findComment-222444 Share on other sites More sharing options...
savio_mf Posted April 6, 2007 Author Share Posted April 6, 2007 Thanks for your replies. Well, the picture should open in a new page, with just the picture on its own, no other HTML code on the page.Cheers. Link to comment https://forums.phpfreaks.com/topic/45792-displaying-title-as-a-link/#findComment-222735 Share on other sites More sharing options...
only one Posted April 6, 2007 Share Posted April 6, 2007 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 https://forums.phpfreaks.com/topic/45792-displaying-title-as-a-link/#findComment-222750 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.