-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget_search_list.php
More file actions
30 lines (28 loc) · 1.17 KB
/
Copy pathget_search_list.php
File metadata and controls
30 lines (28 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?
/***************************************************************************
* selections.php
* -------------------
* begin : Thursday, November 5, 2009
* copyright : (C) 2009 J. David Baker
* email : me@jdavidbaker.com
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
include "includes/classes.inc.php";
$statement = "select player.player_name from player
left join pick on pick.player_id = player.player_id
where pick.pick_id is NULL and
player.player_name like '".$_POST['search']."%'";
$result = mysql_query($statement);
while ($row = mysql_fetch_array($result)) {
$data[] = $row['player_name'];
}
echo json_encode($data);
?>