Hello all! I hope someone can help me here. I wasn't sure if this site was for general PHP problems or specific to a software package, but I need help on something that a seasoned PHP'er will probably know straight away...
I have a script that I use internally to submit my site's news to a MySQL DB, which is then obviously used publically and is quite popular; not to mention that the RSS feed (XML) produced from the database powers other bits of my site...
Now I have been using this script for more than a year. It is simpler than hell. A basic PHP if/else statement that says if (parameter) then display submit form, else display last 6 entries (with option to add, a link which essentially throws "?add=1" to the url, throwing the parameter the PHP-SELF)
For some #$@&in' reason when I migrated to a dedicated host the %@*&% stopped working?!?! Sure database information changed, and I updated it. BUT remember that if the else (no parameter) statement is run it displays the last 6 entries - and that's just it - it DOES display the last six entires so surely it is not having a problem accessing the database....
The problem is when I click the link on the default display, to throw the parameter (/submit-rss.php?add=1) the same damned view comes up...?
I have no idea why this is other legacy files in the same directory with the same permissions are reading parameters thrown in the url...? I tried a bunch of stuff and hope some one here has a 'You idiot, do this:' sort of answer for which I would be ever so grateful.
Thanks much in advance!