Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/2684-url-parameter-to-load-in-same-page/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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