Guest User

Untitled

a guest
Sep 8th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1.  <form name='search' method='post'>
  2.     Keresés erre: <input type='text' name='find' />
  3.     <input type='hidden' name='searching' value='yes' />
  4.     <input type='submit' name='search' value='Keres' />
  5.  </form>
  6. <?php
  7.  
  8.  
  9.  
  10.     if ($_REQUEST["searching"] == 'yes') { echo '<h3>Találatok:</h3>' . "<hr>"; }
  11.     //if ($_POST['find']    == "") { echo "<h5>Nem adott meg keresési feltételt</h5>"; }
  12.     $find=$_REQUEST["find"];
  13.  
  14. $db = mysql_connect('localhost','...','...') or die(mysql_error());
  15. $mydb = mysql_select_db('...');
  16. $sql = "...";
  17. $result=mysql_query($sql);
  18. echo "<table border='1'>";
  19. while ($row = mysql_fetch_array($result))
  20. {
  21. ...
  22. }
Advertisement
Add Comment
Please, Sign In to add comment