Jump to content

Recommended Posts

I am still new to PHP and was wondering how i would put in a specifc link to a pdf file on my page to show up under one set of data but not  the other.

 

<?php
		  	if (mysql_fetch_row(mysql_query("SELECT * from psh_communities WHERE status='Current' and area='San Diego'")) == "" || !$result) {
				print "<p>Coming Soon</p><p> </p>";
			} else {
			print "<table border='0' cellspacing='0' cellpadding='5'>";
				while($row = mysql_fetch_row($result)) {
					print "<tr><td valign='top' align='center'><a href='community.php?ID=" . $row[0] . "'><img src='../images/browse/logos/" . $row[0] . "-TH.jpg' alt='" . $row[1] . "' border='0' /></a></td>";
					print "<td valign='top'><p><span class='comm-header-exception'>" . $row[1] . "</span><br />";
					print $row[5] . "<br />";
					print "<a href='community.php?ID=" . $row[0] . "'>View Details</a></p>";
					print "</td></tr>";
				}
										print "</table>";
			}
		  ?>

 

 

Under view details i want to put another link for Self-Qual Form and the location is http://homes.pacificscene.com/browse/selfqualform/ and i just want to add it as hyperlink for community.php?ID=43 and no others.

 

Could someone give me a hand on how to do this?

 

 

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.