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 Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted April 5, 2007 Share Posted April 5, 2007 google: mod_rewrite Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.