I am looking for some information about using Underscores ( _ ) in usernames. I currently have a friends system where a user can become friends with another user and this is placed into a database.
I then have a query to display all of the users friends, which works totally fine, unless the user has an underscore in their name. It does not matter where it lays my programme does not like it for example:
None of these examples will be picked up on, but any username without an underscore will work fine.
The annoying thing is that names with underscores will work everywhere else in the website weather it is echoing the username, using it in the url or saving it in a database along side an uploaded image, Just not with my friends system.
I hope someone can help me understand why this is not working. I am available to show code is needs be.