a user enters a screen name. after that I am able to set up a query to
"SELECT * FROM setup WHERE screen_name = $screen_name"
I can then pull data for that user with no problems unless certain charaters are used in the screen name. For testing purposes I just hit a bunch of characters, but as an example if the use enters in !"£$%^&*(&))_-=+/.,';[]{} as a screen name, no records are retrieved. If they enter a normal name like joe123 everything works fine. How do I avoid a possible problem cause by a user entering in strange infomation?
I am already using htmlspecialchars($screen_name) because I know one of the users for this members site is D<O>A, and without the htmlspecialchars() his name was retrieved as DA.
"SELECT * FROM setup WHERE screen_name = $screen_name"
I can then pull data for that user with no problems unless certain charaters are used in the screen name. For testing purposes I just hit a bunch of characters, but as an example if the use enters in !"£$%^&*(&))_-=+/.,';[]{} as a screen name, no records are retrieved. If they enter a normal name like joe123 everything works fine. How do I avoid a possible problem cause by a user entering in strange infomation?
I am already using htmlspecialchars($screen_name) because I know one of the users for this members site is D<O>A, and without the htmlspecialchars() his name was retrieved as DA.