liamloveslearning Posted April 22, 2010 Share Posted April 22, 2010 Hi all, I need to prefix all data being inputted to my db usernames column, so for example, when a user puts there name as tom, it would be entered into the table as supertom (for lack of better phrase!), Is there a quick workaround for this? Quote Link to comment Share on other sites More sharing options...
Alex Posted April 22, 2010 Share Posted April 22, 2010 Just put whatever prefix you want into the MySQL query. $sql = "INSERT INTO users (username, ...) VALUES ('super$username')"; Quote Link to comment Share on other sites More sharing options...
liamloveslearning Posted April 22, 2010 Author Share Posted April 22, 2010 That easy! thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.