Tag Switching
Posted: Fri Sep 28, 2007 11:55 am
PHP Question?
How could i update this file to have a if statement for just a specific siteplan ID to dislpay Building instead of Model?
How could i update this file to have a if statement for just a specific siteplan ID to dislpay Building instead of Model?
Code: Select all
$query = "SELECT * from psh_siteplans WHERE communityID = '$ID' ORDER BY orderID";
$result = mysql_query($query);
while ($row = mysql_fetch_row($result)) {
print "<form action=" . $_SERVER['PHP_SELF'] . "?ID=" . $ID . "&siteID=" . $row[0] . " method='POST'>";
print "<table border='0' cellspacing='0' cellpadding='5'><tr>";
$window = "'http://homes.pacificscene.com/popup.php?type=renderings&ID=" . $row[0] . "','popUp','width=775,height=550'";
print "<td width='206' rowspan='8' valign='top'>";
print '<a href="javascript:;"><img border="0" src="http://homes.pacificscene.com/images/browse/renderings/' . $row[0] . '-TH.jpg" onclick="MM_openBrWindow(' . $window . ')" /></a>';
print "</td>";
print "<td width='135'><strong>Model</strong></td>";
print "<td>" . $row[1] . "</td></tr>";
print "<tr><td><strong>Appx Sq. Ft</strong>.</td>";
print "<td>" . $row[2] . "</td></tr>";
print "<tr><td><strong>Stories</strong>.</td>";
print "<td>" . $row[3] . "</td></tr>";
print "<tr><td><strong>Bedrooms</strong>.</td>";
print "<td>" . $row[4] . "</td></tr>";
print "<tr><td><strong>Baths</strong>.</td>";
print "<td>" . $row[5] . "</td></tr>";
print "<tr><td><strong>Garage</strong>.</td>";
print "<td>" . $row[6] . "</td></tr>";
$window = "'http://homes.pacificscene.com/popup.php?type=floorplans&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'";
http://homes.pacificscene.com/browse/co ... .php?ID=43
I have multiple communities and i need to be able to have this one display Building instead of Model