Php-ask a database design question

Source: Internet
Author: User
Tags php database
Recently, I encountered a problem when I was creating a participating file. I designed it like this: add two fields, one is the total number of followers, and the other is the total number of followers, which is easy to understand, the key here is that the attention IDs are separated by commas. for example, if the uid in the ID table is 13579, users are, 9. how can I save and read the data in the method above when adding the attention? how can I remove the comma? Development language PHP database MYSQL framework TP beginner php

Recently I encountered a problem when I was creating a participating file. I needed to make a feature that I designed as follows:
Add two fields
One is the total number of followers
One is the concerned ID

The total number of followers is easy to understand. The key is attention.
Follow IDs are separated by commas. for example, if the uid in the ID table is 1, 3, 5, 7, 9
Is 1, 3, 5, 7, 9

How can I save and read data in the above method when adding the attention? how can I remove the comma?

Development language PHP database MYSQL framework TP

Beginner

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.