I need php mysql help please, before I start having seizures!
I have a mysql database with three columns, `id`, `content` and `url`. What I want to do is when a visitor comes to the site using mysite/this-is-a-page.php I want that page to display the content from the `content` colum that's in the database row associated with that url.
So when they come to the page at this-is-a-page.php, I already have the .htaccess file set to call a dummy.php page that will have the code to do what I want in the above paragraph.
This should be a very simple script for the dummy.php page with just a database connection and a few lines of code, but I've been trying a bunch of crap I've found on sites like stackoverflow, the php site and mysql book site for two days straight and can't seem to cobble together anything that works, so I scrapped it all and came here hoping someone can whip up something or at least point me to somewhere on the web that has some actual working code I can copy and paste before my head explodes.
Can anyone here help me please?
Thanks
Paul "f'n frustrated" Short
busy. But if you make me the right offer, I'll write stuff for you too.