Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!isset($_POST['submit'])) {
- echo "Blank box. retry";
- }
- else {
- $tag = $_POST['submit'];
- $location="localhost";
- $username="sj";
- $password="[ass";
- $database="sj_xbl";
- mysql_connect($location,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query="SELECT * FROM `members` WHERE `tag` LIKE '%$tag%'";
- $result=mysql_query($query);
- if(!$result) {
- die(mysql_error());
- }
- while ($row = mysql_fetch_assoc($result)) {
- echo $row['tag'];
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement