Jump to content

create a row with an anchor to a page with detailed information


Brand Hill

Recommended Posts

If I may set up the problem:

 

On my index.php file I have a small list being created on a small column which looks like this:

 

Feature Articles

 

(Article Image 1)

Article Heading 1 - Article Type 5

 

.

.

.

 

(Article Image 5)

Article Heading 5 - Article Type 5

 

It is currently being created by this bit of code:

 

	while($row = mysql_fetch_array($result))
		{
		echo "<u>";
		echo $row['feat_image'];
		echo "<br />";
		echo $row['title_primary'];
		echo " - ";
		echo $row['article_type'];
		echo "</u>";
		echo "<br />";
		echo "<br />";
		}

 

What I am trying to do is create an anchor that encompasses the three datatypes (as it is currently represented by the underscore tags) to a page called article.php.  This is how the second page in question looks like right now.

 

	<?php
	echo $_GET["title_primary"];
	echo "<br />";
	echo $_GET["title_secondary"];
	echo "<br />";
	echo $_GET["byline"];
	echo "<br />";
	echo $_GET["article_body"];
	echo "<br />";
	?>

 

I know that the answer is so simple that it's laughing in my face, but after two days of beating my head against the wall, I am really in need of a helping hand.

Link to comment
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.