Witam jestem bardzo początkującym w sprawach związany z php ale mam pytanie jak zmienić tło, wstawić jakieś zdjęcie na poniżej podaną strone napisaną w php.
<?php
header("Content-Type: text/html; charset=utf-8"); echo "<form method=\"GET\" action=\"$_SERVER[PHP_SELF]\"> search: <input type=\"text\" name=\"q\" value=\"$_GET[q]\" size=50 maxlength=80 tabindex=0>
<input type=\"hidden\" name=\"start\" value=\"0\">
<input type=\"submit\" value=\"go\">
</form>";
if ($_GET['q']!="") {
$start = (int)$_GET[start];
$po_ile = 10;
include("nusoap_mod.php");
$soapclient = new soapclient("http://api.google.com/search/beta2");
'key' => 'x', // Klucz API
'q' => $_GET['q'], // zapytanie
'start' => $start, // wyszukiwanie od
'maxResults' => $po_ile, // ilosc wynikow na stronie
'filter' => true, // remove similar results
'restrict' => '', // restrict by topic
'safeSearch' => true, // remove adult links
'lr' => '', // restrict by language
'ie' => 'UTF-8', // input encoding
'oe' => 'UTF-8' // output encoding
);
$result = $soapclient->call("doGoogleSearch", $params, "urn:GoogleSearch", "urn:GoogleSearch");
if ($result['faultstring']) {
echo $result['faultstring'];
} else {
echo "MateO: <b>$result[searchQuery]</b> znaleziono $result[estimatedTotalResultsCount] wynikow w czasie $result[sear
chTime] sek<br><BR>";
$num = $result['estimatedTotalResultsCount'];
$elements = $result['resultElements'];
$list = '';
if ($num > 0) {
foreach ($elements as $item) {
$size = $item['cachedSize'];
$title = $item['title'];
$url = $item['URL'];
$snippet = $item['snippet'];
echo "<B>title:</b> $title<BR> <B>snippet:</b> $snippet<BR>
<B>url:</b> <a href=\"$url\" target=_blank>$url</a><BR>
<B>size:</b> $size<BR><BR>";
}
// najprostszy system stronicowania jaki udalo mi sie wmontowac
if ($num > 10) {
$prev=$start-$po_ile;
$next=$start+$po_ile;
if ($prev >= 0) {
echo "<a href=\"example.php?q=$_GET[q]&start=$prev\">"; }
if ($next >= $po_ile AND $num > $next) {
echo "<a href=\"example.php?q=$_GET[q]&start=$next\">"; }
}
}
}
}
?>