1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

userpicker() functioning correctly with jquery

This commit is contained in:
Cameron
2013-02-05 16:39:48 -08:00
parent 2855665d56
commit 39e9b14cf6
5 changed files with 61 additions and 17 deletions

View File

@@ -26,11 +26,12 @@ if(e_AJAX_REQUEST)
if(vartrue($_GET['q']))
{
$q = filter_var($_GET['q'], FILTER_SANITIZE_STRING);
if($sql->select("user", "user_name", "user_name LIKE '". $q."%' ORDER BY user_name LIMIT 15"))
if($sql->select("user", "user_id,user_name", "user_name LIKE '". $q."%' ORDER BY user_name LIMIT 15"))
{
while($row = $sql->db_Fetch())
{
$data[] = $row['user_name'];
$id = $row['user_id'];
$data[$id] = $row['user_name'];
}
if(count($data))