Q:

Send AJAX get request

I just started to study AJAX and I already have some trouble.
I created database and table users with id, name, email fields.
Then I created php file db.php for connection with the database
<?php 
$dblocation = "localhost";
$dbname = "test5";
$dbuser = "root";
$dbpasswd = "";

$dbcnx = @mysql_connect($dblocation, $dbuser, $dbpasswd);
if (!$dbcnx) {
    exit ( "<p>Error.</p>" );
}

if ( ! @mysql_select_db($dbname, $dbcnx)) {
    exit ( "<p>Error.</p>" );
}
?> 

,created file get-user.php to return an answer for ajax-request
<?php
include ("db.php"); 
$result = mysql_query("SELECT name, email FROM users WHERE id='$id'", $dbcnx);
return $result;
?>

And this is my index.php file
<!DOCTYPE html>
<html>
    <head>
        <title>index</title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script>
            $(document).ready(function () {
                $('#button-1').on('click', function () {
                    var id = $('#user-id').val();
                    $.ajax({
                        type: 'GET',
                        url: 'get-user.php',
                        datatype: "html",
                        data: id,
                        success: function (data) {
                            alert(data);
                        }
                    });
                });
            });
        </script>
    </head>
    <body>
        <h2>Title</h2>
        <input name="id" id="user-id" type="text" size="15" />
        <button id="button-1">Get data</button>
</html>

I would like to input the number, click button and get information about user from database, but I get only empty alert. How to make it work?
Sorry for asking, I'm just newbie.

A:

These changes are require:
Ajax: data: id, to data: "{id : id},
PHP: return $result; to echo $result;
PHP & MySQL:
$result = mysql_query("SELECT name, email FROM users WHERE id='$id'", $dbcnx);
$row = mysql_fetch_array($result);
return $result[0] . ";" . $row[1];

