Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- programmer_777Participant
hello , so i couldn’t solve one problem with php+mysql+ajax here code:
and this code is working but i need that check from not (array(‘Elena’ , ‘Anna’ , ‘Bill’);) from mysql base.
$takenUsernames =array(‘Elena’ , ‘Anna’ , ‘Bill’);
sleep(1);
if ($_REQUEST[‘username’] == ”) {
echo ‘denied’;
} else if (in_array( $_REQUEST[‘username’], $takenUsernames)) {
echo ‘denied’;
} else {
echo ‘okay’;
with this code i must check field username from base. please if understand it answer - AuthorPosts
Viewing 1 post (of 1 total)