Hello,
I'm using LFSLapper insim, and what I'm attempting to do it connect to an external MySQL server that's on my website host.
All I need to do, is insert one piece of information to a table; it may sound easy but the way I want to do it physically may sound more difficult.
So, when someone connects, I want it to connect to the database, and check against the users table whether their LFSU name already exists in there. If it
does then close the database, and take no further action.
If, on the other hand, their name doesn't
already exist in the table, it will then add it.
This would prevent multiple copies of the same username within one table. Basically on the website we want a list of all our users.
Thinking of doing it through PHP would be a simple $_POST through in input form, select it from the database, if mysql_num_rows is >=1 then do nothing further, else insert into table. Wish it was just that easy in C#...
Anyone fancies a go?
Thanks in advanced,