I want to create a JSON in php with mysql data only that I do not know how to create the table or the php code so that in the end the json looks like this, I hope your advice, thanks.
[{
"nombre": "Ejemplo",
"url": {
"small": "imagen1.jpg",
"medium": "iamgen2.jpg",
"large": "imagen3.jpg"
},
"fecha": "dd, mm, yy "
},
{
"nombre": "ejemplo",
"url": {
"small": "imagen4.jpg",
"medium": "imagen5.jpg",
"large": "imagen6.jpg"
},
"fecha": "dd, mm, yy"
}]