Hi there,
I'm in the process of moving all my content from static files into a MySQL DB.
What I've done is create a table, which has a field called "content" that contains all the body text for each page. I can get the text in and out of the DB fine with PHP, however, I've run into a bit of a hurdle with my include files that occur mid-content.
For example, in various places throughout the site I've placed an include file called "ad-block", which displays whatever I want inside that file - a Google Ad, a notification or rotating ads.
When this data is retrieved from the DB the PHP include statement is not re-executed so all I see is the include statement itself.
As a workaround I thought I could forget the rotating ad and just use a static chunk of code at each place and then if I needed to replace it I could just use the replace command in MySQL to do a bulk find/replace. But seems MySQL (i.e. PHPMyAdmin) doesn't like big chunks of Google code with <-" inside.
Any suggestions to this problem would be much appreciated!
Thanks,
Pete.