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? Link to comment https://forums.phpfreaks.com/topic/199372-prefix-entry/ 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')"; Link to comment https://forums.phpfreaks.com/topic/199372-prefix-entry/#findComment-1046368 Share on other sites More sharing options...
liamloveslearning Posted April 22, 2010 Author Share Posted April 22, 2010 That easy! thanks Link to comment https://forums.phpfreaks.com/topic/199372-prefix-entry/#findComment-1046382 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.