Plug in Shotcode not Displaying in correct place
-
Hi All,
So, over night I have gone from being a complete and utter php amateur, to a semi novice php wizzard – well not really! What I wanted to do was have a plugin that queries a table, brings the results back and puts it in a shortcode to enable me to display it on a page. I was fairly pleased with myself, I got it to work sort of, however the site will not let me in to the wpadmin now as it’s coming up with the following error: Cannot modify header information – headers already sent by (output started at /home/u4641/public_html/jmvasdata.com/wp-content/plugins/sqltblscrape.php:1) . The problem of geting into the admin side is fine as i can just disable the plugin, but I would like to know why the plugin is causing this error, and also, when I use the shortcode it displays the results above the page – can anyone enlighten me please as to how to get the shortcode to display the data in the main page? I would also like to know how to bring this data back into a table, but one thing at a time please! By the way, here is my plugin code, (minus the gumpf about the name of the plugin and the copyright stuff!)
[code moderated - please follow the forum guidelines for posting code]
The topic ‘Plug in Shotcode not Displaying in correct place’ is closed to new replies.