Chat using php and msql [closed]

-1

I wanted to know how I can with php get the id of another user online, not by name, because there may be users with the same name. for example pull the id of another user, I do not know how to do this (full beginner)

    
asked by anonymous 08.07.2018 / 00:03

1 answer

0

Ideally, you should get the user. And the same must be unique to avoid duplication. Put the field as UNIQUE in your database and in the application before inserting a new user make sure it does not exist.

    
08.07.2018 / 00:14