List Info

Thread: skandinavian keybord




skandinavian keybord
user name
2007-12-29 13:58:09
I have problems with a seeking machine look alik google, but
i can not
get the skandinavian keybord special signs זרו dont now if
you can se
it..

But here goes the code from search.php

<?

header("Content-Type:
text/html;charset=iso-8859-1");

// insert your google key here, if you don't have one http://www.google.com/api
s/
(it's free)
$yourGoogleKey =
"RYffrqdQFHLkxmjMQv196fMU37pfKKde";

// insert your website url here
$yourWebsite = "http://www.web66.d
k/snuggi/";


//----------------------------------------------------------
------------------------------------
// build search query and connect to google
//----------------------------------------------------------
------------------------------------

require_once("nusoap.php");

if($_GET) { extract($_GET, EXTR_PREFIX_SAME,
"get_"); }
if($_POST) { extract($_POST, EXTR_PREFIX_SAME,
"post_"); }

if ($yourGoogleKey ==
"ABQIAAAA_jn_kLPCs7Gw9DJAf7O4JhQVhyvksMHqDVkOYQyexaNpxf
mXXxTQms9aVs2P2zDlvbX_vpx29PGeyw")
{
  echo "You didn't insert a Google Key Yet ! Get one at
www.google.com/apis/
..";
  break;
}

if ($query && $www) {

  $q = urldecode($query);
  if ($www != "true") { $q.= "
site:$yourWebsite"; }
  if(!$start) { $start=0; } else { $start = intval($start);
}

  $parameters = array(
    "key"         => $yourGoogleKey,   //
google developer key
    "q"           => $q,               //
search query
    "start"       => $start,           //
result start index
    "maxResults"  => 10,               // 10 is
the maximum
    "filter"      => false,            //
filtering similar entries
    "restrict"    => "",             
 // country and topic
restrictions
    "safeSearch"  => false,            // adult
content filter
    "lr"          => "lang_da",      
 // language restrictions
    "ie"          => "",             
 // deprecated and ignored
parameter
    "oe"          => ""              
 // deprecated and ignored
parameter
  );

  $soapclient = new soapclient("http://api.g
oogle.com/search/beta2");
  $result = $soapclient->call("doGoogleSearch",
$parameters,
"urn:GoogleSearch");
  $begin = $start + 1;
  $end = $start + $parameters["maxResults"];
  $total = $result["estimatedTotalResultsCount"];
}

//----------------------------------------------------------
------------------------------------
// html headers, stylesheet and search form
//----------------------------------------------------------
------------------------------------

?>

<?php include("header_search.php");?>


<?

//----------------------------------------------------------
------------------------------------
// display results table if a search has been done
//----------------------------------------------------------
------------------------------------
echo "<script
type="text/javascript"><!--
google_ad_client = "pub-1348335941961536";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "666666";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>";
if ($query && $www) {

  echo "<table width="609"
cellspacing="0" cellpadding="10"
border="0">n";
  echo "<tr class="row"><td
width="90%"
class="row"></td></tr>
n";


  if ($total == 0){
  	echo "<tr><td
class="alert">Your search returned no results
..</
td></tr>n";
  }

  if ($total > 0) {
    $result = $result["resultElements"];
    for ($i = 0; $i <
$parameters["maxResults"]; $i++) {
      $element = $result[$i];
      $url = $element["URL"];
      $title = $element["title"];
      $snippet = $element["snippet"];
      if ($url != "") {

		   echo "<tr>n";

		echo "<td><span
class='list'>".($i+$begin).".</span>
<a href='$url'
class='link'>$title</a><br><span
class='gray_small'>$snippet</
span><br><a href='$url'
class='link_small'>$url</a></td></tr>n
";
      }
	}
  }


  echo
"<center><tr><td><br>";
  if($begin > 1) { echo "<center><a
href="google.php?query=$query&www=
$www&start=".($start -
10)."">previous 10 results</a> | ";
}
  echo "showing $begin to $end of $total
results";

  if ($end < $total) { echo " | <a
href="search.php?query=$query&www=
$www&start=".($start + 10)."">next 10
results</a></center>"; }
  echo "</td></tr>n";

  echo "</table></center>";
}
echo "<script
type="text/javascript"><!--
google_ad_client = "pub-1348335941961536";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "666666";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>";
//----------------------------------------------------------
------------------------------------
// html credits and footer  ||| PLEASE DO NOT REMOVE
COPYRIGHTS,
Thanks ||| www.Endless-4um.com
//----------------------------------------------------------
------------------------------------

?><?php include("footer_search.php");?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX API" group.
To post to this group, send email to
Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )