programmer_777

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Technotip Testimonials Around The World#2809
    programmer_777
    Participant

    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

Viewing 1 post (of 1 total)