as4s1n
New Member
- Messages
- 174
- Reaction score
- 4
- Points
- 0
I'm experimenting a little bit with Ajax and i'm trying to get an asynchronous login that checks the name when the user leaves the field (onblur). I'm totally lost, the ajax is fine but i'm trying to get the php page with the usernames on it working...
Obviously i'm referencing the details. I'm not sure how to set the $login as the array of taken names... any ideas?
it always comes back as unavailable which is what i told it to say when its taken...
PHP:
$query = "SELECT login from users";
$result = mysql_query($query);
while($row=mysql_fetch_array($result, MYSQL_ASSOC)){
$login = $row['login'];
$details = array (
'$login'
);
}
echo $details[$_REQUEST['ImageID']];
it always comes back as unavailable which is what i told it to say when its taken...
Last edited: