Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body bgcolor ="#black" text="#white">
- <table border="1">
- <tr>
- <strong>
- <td width="100">Jméno Aime</td>
- <td width="50">Episoda číslo</td>
- <td width="50">DLL</td>
- <td width="50">Torrent</td>
- </tr>
- <?php
- $b1 = "";
- $tb="anime";
- $db="DB";
- $server="127.0.0.1";
- $user = "root";
- $pass = "";
- $spojeni = mysql_connect($server,$user,$pass);
- mysql_select_db($db, $spojeni);
- $vysledek = mysql_query(
- "SELECT * FROM $tb ORDER BY id",
- $spojeni);
- preg_match('/[0-9]/', $srch, $matches);
- $epis = $matches[0];
- $srch = str_replace ($epis,"",$srch);
- $srch = str_replace (" ","",$srch);
- while ($zaznam = mysql_fetch_array($vysledek) ):
- $a = $zaznam["anime"];
- $b = $zaznam["episode"];
- $c = $zaznam["DDL"];
- $d = $zaznam["id"];
- if (preg_match("/$srch/", $a)) {
- if (preg_match("/$epis/", $b)) echo ("
- <table border=\"1\">
- <tr>
- <td width=\"100\">$a</td>
- <td width=\"50\">$b</td>
- <td width=\"50\">$c</td>
- <td width=\"50\">$d</td>
- </tr>");}
- endwhile;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement