[solved] fetching a image from the database - Joomla! Forum - community, help and support


hi im new joomla, looks great  :)

i building own component im listing number of tumbnails stored in database. how fetch image database , show on page without compromising joomlas direct access php files protection....

i mean want know how make clean echo of data in database can use file src in img html tag

any code snippets ? or suggestions

thanks lot

mod note: added solved topic have nice day :)

welcome joomla!

you can store filename plain text (fieldtype: varchar) in database, query field , echo field within html img tag (as proposed).
you won't compromise "direct access not allowed"  protection on joomla's php files: images not protected that.
make sure permissions of files ok (on files: chmod 644).

ps: it's possible store whole image in database (in field type: blob), not recommend that.





Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code