enter image description here This is a database base table. From which I need to take a name with only login. Help!!!!!!

    2 answers 2

    SELECT name FROM my_table WHERE login='my_login'

    If you still need a php implementation look in the direction of PDO - http://php.net/manual/ru/pdo.prepare.php there are examples

    • Thank you now check this method. - Sasha Prilutskiy
    • Thanks, checked, everything works. - Sasha Prilutskiy

    SELECT name FROM table_name WHERE login = 'user_name';

    learn more about http://2sql.ru/basic/sql-select/