Jump to content


Photo

how do they....


  • Please log in to reply
6 replies to this topic

#1 nelquintin

nelquintin
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 26 September 2006 - 03:20 PM

here my code
<?php
mysql_connect("localhost","user","pass");
mysql_select_db("vap");  ?>
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>

<table width="300" border="1" bgcolor="#9900FF">

<?
$type = $_POST["type"];
$price = $_POST["price"];
$minprice = $_POST["minprice"];
$maxprice = $_POST["maxprice"];
$query = "SELECT * FROM propertys WHERE type LIKE '%".$_POST['type']."%' AND price BETWEEN '".$_POST['minprice']."' AND '".$_POST['maxprice']."'";
$result = mysql_query($query);

if (mysql_num_rows($result)) {
    while ($row = mysql_fetch_array($result)) {
        $picture = $row["picture"];
        $price = $row["price"];
        $ref = $row["ref"];
        $type = $row["type"];
        $erf = $row["erf"];
        $size = $row["size"];
        $bed = $row["bed"];
        $bath = $row["bath"];
        $gar = $row["gar"];
?>
  <tr>
    <td width="150"><span class="style1"><?php echo "<image src=\"$picture ","\" style=\"border: 2px solid black;\">

"; ?></span></td>
    <td width="150"><span class="style1"><?php echo $ref['ref']; ?></span></td>
  </tr>

<?

  }
}
?>

all i need to do now is just add on a "click here for more details" which will open another page with more details.could any one please help my designer left this project half way and im trying to finish it myself.

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 26 September 2006 - 03:43 PM

<a href="moredetails.php" title="More Details">Click here for more details</a>
If that is all you want, you have to be more specific.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#3 nelquintin

nelquintin
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 27 September 2006 - 10:37 AM

thank you for that now i just want to dispaly the results in a new page. i tried this
<td width="150"><span class="style1"><a href="moredetails.php?'.$row['picture'].'&row='.$row['ref'].'"" title="More Details">Click here for more details</a><?php echo $ref['ref']; ?></span></td>
  </tr>
and then on moredetails.php
<?php
mysql_connect("localhost","user","pass");
mysql_select_db("vap");  ?>
$picture = $_GET['picture'];
$ref = $_GET['ref'];
<?
thanks again for your help.

#4 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 27 September 2006 - 10:45 AM

if you mean in a new page rather than the same just put target='_blank' in the <a> tag

#5 nelquintin

nelquintin
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 27 September 2006 - 01:46 PM

It still wont display the result in the new page.

#6 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 04 October 2006 - 12:31 PM

got a link so i can c.

#7 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 04 October 2006 - 01:34 PM

Do you  mean have more details for each and every project.  You just have to make each project a link, or have beside a show more details link, but you still have to work up the details pages, so they can see the details.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users