Witam!
Mam problem robilem wyszukiwarke na aby wyszukiwala mi w pliku tekstowym
i wyskakuja mi bledy:
Deprecated
: Function split() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 9
Deprecated
: Function eregi() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Warning
: eregi() expects parameter 2 to be string
, array given in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Home
Deprecated
: Function split() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 9
Deprecated
: Function eregi() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Warning
: eregi() expects parameter 2 to be string
, array given in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Deprecated
: Function split() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 9
Deprecated
: Function eregi() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Warning
: eregi() expects parameter 2 to be string
, array given in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Deprecated
: Function split() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 9
Deprecated
: Function eregi() is deprecated in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line 10
Warning
: eregi() expects parameter 2 to be string
, array given in
/home
/u687011385
/public_html
/torrent
-magnet
/wyszukiwarka
.php on line
10
moj plik php:
<?php
$wyszukiwarka = $_POST['wyszukiwarka'];
//warunek: jeżeli zmienna nie jest pusta
if($wyszukiwarka!=""){
$dane = file("dane.txt"); for($index=0; $index < count($dane); $index++){ $eregi = eregi($wyszukiwarka, $dane); if(@eregi($wyszukiwarka, $dane[$index])){ echo '<li><a href="'.$g[0].'" title="'.$g[1].'">'.$g[1]."</a></li>"; $bl = true;
}
}
}
//w przypadku braku wyników
if(!$bl){
}
?>
prosze o pomoc (ps. i przepraszam ze jak pisze nie dodaje polskich znakow poniewaz cos przycisk "Alt" mi nie dziala)