nelquintin Posted September 26, 2006 Share Posted September 26, 2006 here my code <?phpmysql_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. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/ Share on other sites More sharing options...
Ninjakreborn Posted September 26, 2006 Share Posted September 26, 2006 [code]<a href="moredetails.php" title="More Details">Click here for more details</a>[/code]If that is all you want, you have to be more specific. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-99021 Share on other sites More sharing options...
nelquintin Posted September 27, 2006 Author Share Posted September 27, 2006 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<?phpmysql_connect("localhost","user","pass"); mysql_select_db("vap"); ?>$picture = $_GET['picture'];$ref = $_GET['ref'];<?thanks again for your help. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-99512 Share on other sites More sharing options...
brown2005 Posted September 27, 2006 Share Posted September 27, 2006 if you mean in a new page rather than the same just put target='_blank' in the <a> tag Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-99514 Share on other sites More sharing options...
nelquintin Posted September 27, 2006 Author Share Posted September 27, 2006 It still wont display the result in the new page. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-99598 Share on other sites More sharing options...
brown2005 Posted October 4, 2006 Share Posted October 4, 2006 got a link so i can c. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-103666 Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Share Posted October 4, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22118-how-do-they/#findComment-103711 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.