Hello phpbuilders! I would like to ask help on how to create a link like this "http://phpbuilder.com/board/newthread.php?do=newthread&f=10". I made a simple cms that simply updates the news in the website. What I want to do is when I update the news it will create a new link and using the ID in the database, it will pass all the fields values into the new webpage.php. I tried using
insert into webdatabase values (null, <a href=webpage.php?$id=id>$title</a>, $contents, curdate(), $author); but instead of displaying the id that I wanted, it displays all the announcements in the database. May I ask how to do this? thank you very much in advance
Generating a webpage with a page id using php and mysql
What you are describing should be very doable. Perhaps you should post some sample code. I do hope you are quoting you SLQ insert correctly, not to mention your HTML. Make sure your application will accept and process the style of link you want (type webpage.php?id=1 into your browser. I can't tell from your post if the problem is generating the link, or processing the URL.