php - Populating a table with images. Data for which images to use coming from Database -
i have table using datatables. current "item" field of table using item name. instead replace these item names , image corresponds item name.
this info beingness generated game each item has following:
static item id (integer) static item namesince item id , item name both static should not matter used. question is, how should populate table images instead of item names. thinking of comparing item id's retrieved database (directory of items), contains info image name. think may improve ways though, ideas great!
in order populate datatables images, have specify content of cell html image tag : <img src="mydirectory/myimage.png" alt="alternative description" title="my title" />
php table datatables
No comments:
Post a Comment