Jump to content

[SOLVED] PHP if statement for specifc criteria


jiggens

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?

 

 

Archived

This topic is now archived and is closed to further replies.

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