Witam mam problem znalazlem skrypt pogody chcialem go dodaj na stronie ale jak dodaje do tabelki to mi sie robi kolejna tabelka i sie wszystko knoci
<?
$fp = fsockopen("pogoda.onet.pl", 80
, $errno, $errstr, 30
); if (!$fp) {
echo "$errstr ($errno)<br />\n"; } else {
$out = "GET /0,13057,38,miasto.html HTTP/1.1\r\n";
$out .= "Host: pogoda.onet.pl\r\n";
$out .= "Connection: Close\r\n\r\n";
$st="";
}
}
$teraz=strpos($st,"class=a2b><IMG src=0 width=14 height=14></TD></TR><TR>"); $end=strpos($st,"BR><IMG src=0 width=6 height=6 border=0></TD></TR><TR>"); $ile=$end-$teraz;
$s2=substr($st,$teraz,$ile-1
); $s2=str_replace("_d/","http://pogoda.onet.pl/_d/",$s2); $s2=str_replace("<TD class=a1b width=\"100%\">","<TD class=a1b>",$s2); $s2=str_replace("<BR><IMG src=0 width=2 height=2 border=0><BR>"," ",$s2); $teraz=strpos($s2,"<TD align=center"); ?>
czekam na wasze pomysly