Thauwa Posted January 1, 2009 Share Posted January 1, 2009 heres the story: *there is an empty field *a user clicks a button in a page and one record fills up that field *the user goes to another page and clicks another button, then another record is inserted to the field *this goes on and sometimes, a record empties the field on users choice. is this possible? can anyone help me with the mysql query? Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/ Share on other sites More sharing options...
revraz Posted January 1, 2009 Share Posted January 1, 2009 Did you read the tutorial for MySQL and PHP from the tutorial section? http://www.phpfreaks.com/tutorial/php-basic-database-handling Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-727447 Share on other sites More sharing options...
redbrad0 Posted January 1, 2009 Share Posted January 1, 2009 update TableName set ColumnName='xxxxxxxxx' where ColumnName='xxxxxxx' Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-727472 Share on other sites More sharing options...
Thauwa Posted January 3, 2009 Author Share Posted January 3, 2009 does that mean that each record takes up a column? Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-728514 Share on other sites More sharing options...
revraz Posted January 3, 2009 Share Posted January 3, 2009 Each record takes a Row. You can either update that row or make a new row with the new entry. Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-728527 Share on other sites More sharing options...
Thauwa Posted January 3, 2009 Author Share Posted January 3, 2009 you all didn't get me. i was asking how to add a new record to a record while keeping the old too. something like extending the record to be two records. ex: record : bollby bloo user clicks a button on the 'blaaby blaa' page and the php page makes the record: blooby bloo, blaaby blaa did you get what i want? Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-728629 Share on other sites More sharing options...
revraz Posted January 3, 2009 Share Posted January 3, 2009 I got you, I guess you didn't understand the answer. You should learn more about databases and how they work. Link to comment https://forums.phpfreaks.com/topic/139083-adding-multiple-records-to-a-mysql-field-via-php/#findComment-728637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.