Hello guys i wanna send two values from two queries to the other page Via GET Method the
one value is sending properly but the second is failing mean i am receiving just one value
but not the second one i need to use these two values in other page in a new query and
perform an action
Any one please?????
Here is my code:
<?php
require_once('db.php');
if(isset($_POST['property']))
{
$property=$_POST['property'];
$propertyquery = "SELECT PropertyID, PropertyImageID, PropertyName, PropertyStatus, PropertyLocation, PropertyRegion FROM properties WHERE PropertyImageID =$property";
$propertyquery_run= mysql_query($propertyquery);
if (mysql_num_rows($propertyquery_run) > 0)
{
while ($propertyrow = mysql_fetch_array($propertyquery_run))
{
$imagequery ="SELECT PropertyImageID, ImagePath FROM propertyimages WHERE PropertyImageID='".$propertyrow['PropertyImageID']."' LIMIT 1";
$imagequery_run=mysql_query($imagequery);
?>
<table style="margin-left:348px;">
<tr><td>PropertyID:</td><td><span style="color:#0F0; font-weight:bold;"><?php echo $propertyrow['PropertyID'] ?></span></td></tr><tr><td>PropertyName:</td><td><span style="color:#0F0; font-weight:bold;"><?php echo $propertyrow['PropertyName'] ?></span></td></tr>
<tr><td>PropertyStatus:</td><td><span style="color:#0F0; font-weight:bold;"><?php echo $propertyrow['PropertyStatus'] ?></span></td></tr>
<tr><td>PropertyLocation:</td><td><span style="color:#0F0; font-weight:bold;"><?php echo $propertyrow['PropertyLocation'] ?></span></td></tr>
<tr><td>PropertyRegion:</td><td><span style="color:#0F0; font-weight:bold;"><?php echo $propertyrow['PropertyRegion'] ?></span></td></tr>
</table>
<center>
<?php }
if(mysql_num_rows($imagequery_run) > 0)
{
while ($imagerow = mysql_fetch_array($imagequery_run))
{
?>
<div style="border:solid 2px #9F0; border-radius:5px; height:222px; width:544px;">
<!-- sending value started -->
<a href="DisplayImages.php?PropertyImageID=<?php echo $imagerow['PropertyImageID'] ?>&PropertyID=<?php echo $propertyrow['PropertyID'] ?>">
<img src="<?php echo $imagerow['ImagePath']; ?>" width="544" height="222" ></a> <!-- sending value Ended -->
</div><br />
<?php
}
}
}
}
else
{
echo 'Go Back And Set Your Session.Thanks';
}
?>