Jump to content

link


marquis

Recommended Posts

No idea dude, but I'm pretty sure an IP is the same as a normal address like http://www.google.com/I think a website can be expressed by hex, IP, or normal address.I know I probably shouldn't reply unless I know what I'm talking about, but maybe this will help while you're waiting for someone else.try exactly what you did, but without the http:// - maybe that is considered part of the IP?Good Luck and God SpeedLifeInBinary.

Link to comment
Share on other sites

im trying to make a link that redirect u to a ip address<a href="http://69.92.201.75">http://69.92.201.75</a>when i do this i get this errorNot FoundThe requested URL /web/ohs/bpa/webpage/69.92.201.75 was not found on this server.
It worked with me too, when I used the slash (/), but I was just wondering...how did you make the search engine?
Link to comment
Share on other sites

It worked with me too, when I used the slash (/), but I was just wondering...how did you make the search engine?
sorry i havnt responded in a while i got grounded from the internet well i figured out that for some reason when i ftped the code to the server i was using for some reason it didnt go through. and about the search engine its nine miles of if statements if you want the code just ask
Link to comment
Share on other sites

Awwww! Poor you.No Internet = the worst time ever!But you could go to the site at W3Schools where you can download the Internet without that your parents knew:p haha! It's a funny joke :)But yeah...I want the search engine script, though I've made my own while you've been gone but I can't make it work on my other site and that's weird because it worked on another site I've made. :S

Link to comment
Share on other sites

<html><head><link rel="stylesheet" href="CSS.css" type="text/css" /><title>Search Results</title></head><body align="center"><div id="sidebar"><img src="images/bigdoglogo.gif" width="225"height="79"  border="0"><div id="menu"><a href="Home.html">Home</a><a href="AboutUs.html">About Us</a><a href="CMS.php">Realtor login</a><a href="newmembers.html">Member Signup</a><a href="memberlogin.html">Member's Login</a><a href="morgage.html">Mortgage Info</a><a href="contact.html">Contact Us</a></div></div></div><div id="content"></body><h1>Search Results</h1><br><br><?php$SQL = "SELECT * FROM estate ";$SQLTEST = "SELECT * FROM estate ";if($_GET["city"]) {$city=$_GET["city"];$SQL =" $SQL WHERE city='".$city."'  ";}if($_GET["state"]) {if($SQL != $SQLTEST){$state=$_GET["state"];$SQL =" $SQL AND state='".$state."'  ";}else{$state=$_GET["state"];$SQL =" $SQL WHERE state='".$state."'  ";}}if($_GET["zipcode"]) {if($SQL!=$SQLTEST){$zipcode=$_GET["zipcode"];$SQL =" $SQL AND zipcode='".$zipcode."'  ";}else{$zipcode=$_GET["zipcode"];$SQL =" $SQL WHERE zipcode='".$zipcode."'  ";}}$pricemin=$_GET["pricemin"];$pricemax=$_GET["pricemax"];if($pricemax=="1")$pricemax="99999999999999";if($_GET["pricemin"]||$pricemax) {if($SQL!=$SQLTEST){$SQL =" $SQL AND price BETWEEN ".$pricemin." AND ".$pricemax."  ";}else{$SQL =" $SQL WHERE price BETWEEN ".$pricemin." AND ".$pricemax."  ";}}//100$bathsmin=$_GET["bathsmin"];$bathsmax=$_GET["bathsmax"];if($bathsmax="1")$bathsmax="99999999999999";if($_GET["bathsmin"]||$bathsmax) {if($SQL!=$SQLTEST){$SQL =" $SQL AND baths BETWEEN ".$bathsmin." AND ".$bathsmax."  ";}else{$SQL =" $SQL WHERE baths BETWEEN ".$bathsmin." AND ".$bathsmax."  ";}}$bedroomsmin=$_GET["bedroomsmin"];$bedroomsmax=$_GET["bedroomsmax"];if($bedroomsmax="1")$bedroomsmax="99999999999999";if($_GET["bedroomsmin"]||$bedroomsmax) {if($SQL!=$SQLTEST){$SQL =" $SQL AND bedrooms BETWEEN ".$bedroomsmin." AND ".$bedroomsmax."  ";}else{$SQL =" $SQL WHERE bedrooms BETWEEN ".$bedroomsmin." AND ".$bedroomsmax."  ";}}if($_GET["county"]) {if($SQL!=$SQLTEST){$county=$_GET["county"];$SQL =" $SQL AND county='".$county."'  ";}else{$county=$_GET["county"];$SQL =" $SQL WHERE county='".$county."'  ";}}if($_GET["buyorlease"]) {if($SQL!=$SQLTEST){$buyorlease=$_GET["buyorlease"];$SQL =" $SQL AND buyorlease='".$buyorlease."'  ";}else{$buyorlease=$_GET["buyorlease"];$SQL =" $SQL WHERE buyorlease='".$buyorlease."'  ";}}if($_GET["typeofprop"]) {if($SQL!=$SQLTEST){$typeofprop=$_GET["typeofprop"];$SQL =" $SQL AND typeofprop='".$typeofprop."'  ";}else{$typeofprop=$_GET["typeofprop"];$SQL =" $SQL WHERE typeofprop='".$typeofprop."'  ";}}$con = mysql_connect(***********);if (!$con)  {  die('Could not connect: ' . mysql_error());  }mysql_select_db("realestate", $con);$result = mysql_query($SQL);echo "<table border='5'>  <tr>  <th>Picture</th>  <th><a href=\"resultssort.php?sort=1&SQL=$SQL\">Price</a></th>  <th><a href=\"resultssort.php?sort=2&SQL=$SQL\">Baths</a></th>  <th><a href=\"resultssort.php?sort=3&SQL=$SQL\">Bedrooms</a></th>  <th>State</th>  <th>City</th>  <th><a href=\"resultssort.php?sort=4&SQL=$SQL\">Square Feet</a></th>  </tr>";while($row = mysql_fetch_array($result))  {  $accountnum=$row['accountnum'];     echo "<tr>";  echo '<td><a href="descrip.php?accountnum='.$accountnum.'"> <img src="images/'.$row['imagename'].'" width="75" height="75"></a> </td>';  echo "<td>" . $row['price'] . "</td>";  echo "<td>" . $row['baths'] . "</td>";  echo "<td>" . $row['bedrooms'] . "</td>";  echo "<td>" . $row['state'] . "</td>";  echo "<td>" . $row['city'] . "</td>";  echo "<td>" . $row['squarefeet'] . "</td>";  echo "</tr>";	  }echo "</table>";if(mysql_num_rows($result) == 0)ECHO "<h3>NO MATCHES FOUND</h3>";mysql_close($con);?></body></html>

Edited by Jonas
Changed [code][/code] to [codebox][/codebox]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...