Cardale Posted August 24, 2009 Share Posted August 24, 2009 I wanted to use one single text property to log user data and have it inserted into the end. I wanted to use the type "text" and have the information inserted into the last position is this possible? how would I do something like this? Quote Link to comment https://forums.phpfreaks.com/topic/171592-mysql-question-regarding-text-property/ Share on other sites More sharing options...
purencool Posted August 24, 2009 Share Posted August 24, 2009 what do you mean by text if it is a text file You have to be able to text file and alter the data to do this you need to add you php functions. here is a starting point =) www.w3schools.com/.../func_filesystem_file_get_contents.asp http://au.php.net/file_get_contents if you want to modify a string http://us2.php.net/manual/en/book.strings.php Quote Link to comment https://forums.phpfreaks.com/topic/171592-mysql-question-regarding-text-property/#findComment-904846 Share on other sites More sharing options...
ignace Posted August 24, 2009 Share Posted August 24, 2009 I think this could work. UPDATE table SET field = CONCAT(field, $data) WHERE id = $id Quote Link to comment https://forums.phpfreaks.com/topic/171592-mysql-question-regarding-text-property/#findComment-904907 Share on other sites More sharing options...
Cardale Posted August 26, 2009 Author Share Posted August 26, 2009 So this would work in the same way ...as taking the information out and then adding it to new information and putting them both together. I want to be able to just add information to the bottom of a text field in MYSQL database instead of reading it then adding them together(not literally math add) and putting it in. Quote Link to comment https://forums.phpfreaks.com/topic/171592-mysql-question-regarding-text-property/#findComment-906304 Share on other sites More sharing options...
redarrow Posted August 26, 2009 Share Posted August 26, 2009 ignace showed you a way forward in this solution. your need to pull the info out, then re generate new info to the word, only a update is passable mate. ((concat is advised, try it. Quote Link to comment https://forums.phpfreaks.com/topic/171592-mysql-question-regarding-text-property/#findComment-906353 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.