Hi, I've been doing php for a while now.. but today, I came across a problem I've never needed to face before... and now i'm stuck, so I thought i'd ask the pros at phpbuilder 😉
Heres the probelm..
I have a mysql database, and in one of the tables, I want it to store some info to be included on content pages on a website - ok, that bits fine.
The trouble comes when I put actual PHP coding INTO the database. When I come to extract it, it doesn't run the php command. It physically puts it into the page, but doesn't do anything (ie. when you go to the source, you can see the <?php bits) - if you don't get that, then let me show you:
ok.. in a field in a table in a database, lets say it has:
<?php echo "hello world"; ?>
Then, on the php page, i have all the commands to select out of a database... and instead of putting "hello world" on the page, it puts "<?php echo "hello world"; ?> onto the page (not physically viewable, but you can see it in the source).
Now, if you haven't lost interest completely, maybe you could help me. Is there any way of actually getting the page to DO the php ? ie, actually get it to put "hello world" on?
Any help would be greatly appreciated - many thanks for you're time. I hope I have outlined my problem clearly.