当我使用 graph api 时,我得到了这个结果。它是数组格式
{
"id": "216805086",
"name": "raj sharma",
"first_name": "raj ",
"last_name": "sharma",
"link": "https://www.facebook.com/raj.sharma.5",
"username": "raj .sharma.5",
"favorite_teams": [
{
"id": "198358615428",
"name": "Mumbai Indians"
},
{
"id": "190313434323691",
"name": "Indian Cricket Team"
}
],
"favorite_athletes": [
{
"id": "100787839962234",
"name": "Saina Nehwal"
}
],
"gender": "male",
"email": "raj.discoverme@gmail.com",
"timezone": 5.5,
"locale": "en_GB",
"verified": true,
"updated_time": "2013-08-13T06:01:17+0000"
}
我正在使用 php 语言和 phpmyadmin 数据库。现在我想将数组插入我的数据库。我应该为 id 、 name 、 first_name 、last_name、link、favorite_teams 等创建一个列,还是应该为所有这些创建一个列 ........ 如何将 tha 数组插入数据库