Advertisement
XenRevo

hevo

Aug 27th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.     $db = new ('mysql:host=localhost;dbname=GAL;charset=utf8', 'user', 'pass');
  3. ?>
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8.     <title>Search results</title>
  9.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10.     <link rel="stylesheet" type="text/css" href="style.css"/>
  11. </head>
  12. <body>
  13. <?php
  14.  
  15.    foreach($db->query("SELECT * FROM GALTotals WHERE (`IGN` LIKE '%".$query."%')") as $row) {
  16.     echo $row['IGN']; //etc...
  17. }
  18.  
  19.     $query = $_GET['query'];
  20.  
  21.      
  22.      ini_set('display_errors',1);  
  23.      error_reporting(E_ALL);
  24.          
  25.        
  26.          
  27.         else{
  28.             echo "No results";
  29.         }
  30.          
  31.     }
  32. ?>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement