ето този код [/code]<center>
<form action="search.php" method="post">
<input type="text" name="searched">
<input type="submit" value="Грабни Песен">
</form>
<?php
$flag=0;
$dir="upload/";
if(isset($_POST['searched'])) {
foreach(glob($dir."*") as $file) {
if(@eregi($_POST['searched'], str_replace($dir, "", $file))) {
echo("<a href='".$file."' target=_blank>".str_replace($dir, "", $file)."</a><br />\n");
$flag+=1;
}
}
if($flag==false) {
echo("Няма намерени файлове.");
}
}
?>
</center>
<form action="search.php" method="post">
<input type="text" name="searched">
<input type="submit" value="Грабни Песен">
</form>
<?php
$flag=0;
$dir="upload/";
if(isset($_POST['searched'])) {
foreach(glob($dir."*") as $file) {
if(@eregi($_POST['searched'], str_replace($dir, "", $file))) {
echo("<a href='".$file."' target=_blank>".str_replace($dir, "", $file)."</a><br />\n");
$flag+=1;
}
}
if($flag==false) {
echo("Няма намерени файлове.");
}
}
?>
</center>
Код:
искам да като търся да бъде в таблица... ето линк кам това което искам да стане самоче да е в таблица http://grab-music.freewebhosting360.com/search.php