adding dynamic data

Permalink
Hi Guys
I'm fairly new to concrete 5 so be gentle with me. I want to insert a random quote into a block on each page. The data is in a table which I've added to the main database. How/where should I install the php script to access the data?
thanks

quantum503
 
s2d replied on at Permalink Best Answer Reply
s2d
Probably the simplest way would be to get ChadStrat's $15 add-on that does this:http://www.concrete5.org/marketplace/addons/simple-quote/...

If you prefer not to spend the bucks, and you have a snippet of php code that can do that, there's a free add-on that lets you insert a script into your pages here: http://www.concrete5.org/marketplace/addons/simple-php-block/...

Or you can make your own custom block to do it. (http://www.concrete5.org/documentation/developers/blocks/overview) That requires a little more programming skill.
quantum503 replied on at Permalink Reply
quantum503
Wow! So many options. It is likely that I'll want to be able to insert other bits of PHP as well, so I'll look into the custom block thing as well.

Thanks for your help
ScottC replied on at Permalink Reply
ScottC
there's a testimonials block that does this pretty well.