Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1.  
  2.   <body bgcolor ="#black" text="#white">
  3.   <table border="1">
  4.     <tr>
  5.       <strong>
  6.   <td width="100">Jméno Aime</td>
  7.   <td width="50">Episoda číslo</td>
  8.   <td width="50">DLL</td>
  9.   <td width="50">Torrent</td>
  10.     </tr>
  11. <?php
  12. $b1 = "";
  13. $tb="anime";
  14. $db="DB";
  15. $server="127.0.0.1";
  16. $user = "root";
  17. $pass = "";    
  18. $spojeni = mysql_connect($server,$user,$pass);
  19. mysql_select_db($db, $spojeni);
  20. $vysledek = mysql_query(
  21. "SELECT * FROM $tb ORDER BY id",
  22. $spojeni);
  23.  
  24. preg_match('/[0-9]/', $srch, $matches);
  25. $epis = $matches[0];
  26.  
  27. $srch = str_replace ($epis,"",$srch);
  28. $srch = str_replace (" ","",$srch);
  29.  
  30. while ($zaznam = mysql_fetch_array($vysledek) ):
  31. $a = $zaznam["anime"];
  32. $b = $zaznam["episode"];
  33. $c = $zaznam["DDL"];
  34. $d = $zaznam["id"];
  35.  
  36. if (preg_match("/$srch/", $a)) {
  37. if (preg_match("/$epis/", $b)) echo ("
  38. <table border=\"1\">
  39. <tr>
  40.  <td width=\"100\">$a</td>
  41.  <td width=\"50\">$b</td>
  42.  <td width=\"50\">$c</td>
  43.  <td width=\"50\">$d</td>
  44. </tr>");}
  45. endwhile;
  46.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement