Jump to content


Photo

URL parameter to load in same page?


  • Please log in to reply
No replies to this topic

#1 dchapma123

dchapma123
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 October 2005 - 02:58 AM

I'm hoping someone can help me with this. It seems like it should be a pretty simple thing to do, so I'm probably missing something small.

I have a database with review articles in it. On my index page, I have a link to the most recent article. I do this by using Dynamic Text in Dreamweaver to show the article title from the recordset, then have create a hyperlink from the article with the following: name=idreview, parameter=<?php echo $row_rsReviews['idreview']; ?>. This link opens in a page called review.php, and works fine.

However, on the review.php page, I have a list of the other articles in the database. My intention is to make them linkable as well, and have them also open in review.php (where the first article opens). I create the links the same way, but they don't open. I've even tried having them open in a different page, but it just blinks and stays with the initial (most recent) article.

I'm pretty new to PHP and MySQL, so I'm not sure what's going on. I'm wondering if I need to write an extra query perhaps, but I can't see why? If I've got the record ID, should it bring up the record?

Help me out?

Thanks,
Dave...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users