mercredi 25 février 2015

PHP strings connect to Image

I have a php file that reads data from mysql database. Can i link from string example: Id:1, Name: Ivan, Ivan="image source"? So can i link a string to a image source in my php, so i can use both data and picture in android studio?


this is my table:



{"Grad":[{"id":null,"datum":"29.03.2015","grad":"Pula","place":"Zen","adresa":"Zaobilaznica 3","Dogadaj":"Narodna glazba i DJ Koprena","Cijena":"Besplatno"},{"id":null,"datum":"29.03.2015","grad":"Pula","place":"Pietas","adresa":"Riva 13","Dogadaj":"Narodna Glazba i Dj Sale","Cijena":"Besplatno"},{"id":null,"datum":"29.03.2015","grad":"Pula","place":"Uljanik","adresa":"Monte Zaro 11","Dogadaj":"Rostiljarka","Cijena":"10 kn i pivo gratis"},{"id":null,"datum":"29.03.2015","grad":"Zminj","place":"The Bar Zminj","adresa":"Ulica Bartulja 2","Dogadaj":"Night Express Band","Cijena":"30kn"}],"success":1}


So i want to put for string place: Zen i want to display image from Zen folder, image Zen.jpg.


Aucun commentaire:

Enregistrer un commentaire